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:
- 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)
- Open the text file in Notepad or other text editor.
- On each ProxySG appliance, complete the following steps:
- 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.
- Select Configuration > Policy > Policy Files.
- Next to Install local file from, select Text Editor from the drop-down menu.
- Click Install. The Text Editor window opens.
- 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.
- Click Install.
A dialog appears, stating that the file was successfully installed.
- Click OK to close the dialog.
- 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.