Policy for caching YouTube content

<< Back to Knowledge Search



The volume of YouTube traffic on your network grows continually and you need the ability to efficiently cache YouTube content on ProxySG appliances. For efficient WAN/Internet bandwidth usage, you require a policy configuration ensuring that after a video is cached on the ProxySG appliance, all subsequent requests for the same video are served from the cache.


Blue Coat has provided a custom policy (attached to this KB article) that allows the appliance to effectively cache YouTube content to optimize bandwidth savings and user experience.

Important: Final policy update for SGOS 5.x and 6.x was released on September 24, 2013; if you run SGOS 5.x or 6.x, you can update to the attached policy. Policy for 4.x was not updated and has been deprecated. Both policies attached to this article are the final versions and will no longer be maintained from this point onward. To continue to stay up-to-date with policy for caching YouTube content, upgrade to SGOS 6.5.2.x or later and subscribe to the CachePulse service. For more information on the CachePulse service, refer to the SGOS 6.5.2.x Administration Guide.

To install YouTube caching policy:

  1. Download the appropriate YouTube caching policy text file:
    • YouTubeCachingPolicy_SG5_6.txt (for SGOS 5.x and 6.x)
    • YouTubeCachingPolicy_v4.txt (for SGOS 4.x)
  2. Open the text file in Notepad or other text editor.
  3. On each ProxySG appliance, complete the following steps:
    1. Log in to the Management Console (https://<IP_address>:8082).
      In ProxySG VA MACH5 Edition, go to the Management Console by clicking the Configure tab and then clicking the Advanced configuration button. 
    2. Select Configuration > Policy > Policy Files.
    3. Next to Install local file from, select Text Editor from the drop-down menu.
    4. Click Install. The Text Editor window opens.
    5. Copy the contents of the YouTubeCachingPolicy text file and paste it into the window.
      Make sure you delete/overwrite any previous versions of YouTube policy.
    6. Click Install.
      A dialog appears, stating that the file was successfully installed.
    7. Click OK to close the dialog.
    8. Click Close to exit the Text Editor.


  • If you have set the maximum size of cached objects to a low value (such as 1 MB), most videos will not cache. To verify if this is the case, select Configuration > Proxy Settings > HTTP Proxy > Policies. Verify the value in the field "Do not cache objects larger than ___ megabtyes". 
  • If you see reduced or limited caching effectiveness with this policy over time, please migrate to SGOS 6.5.x or later and obtain a subscription to the CachePulse service.
  • In Chrome, videos do not load if you play them in YouTube with HTML5.

Additional Information
Bug Number
InQuira Doc IdKB5121
Attachment Download File

Article Feedback

Hide Properties
First Published      10/01/2014
Last Modified      10/01/2014
Last Published      10/01/2014
Article Audience
Product      ProxySG
Software      SGOS 4, SGOS 5, SGOS 6
Article Number      000012696
Was this helpful?
Previous MonthNext Month