How do I prevent caching of certain content?
How do I prevent caching of content in response to a take-down notice?
Your CacheFlow appliance provides a local policy gesture which allows you to prevent caching of content based on the set of rules you specify. When used, this gesture allows the cache to be bypassed – both for content lookup and for content storage. This means that the content will not be served from cache if it’s already there, nor will it be stored in cache if it’s not there previously.
Specifically, by using this gesture in policy, you can do things like
Local policy allows you to prevent caching of content based on various pieces in the HTTP request.
General rules to prevent caching and lookup of content can be generalized as:
1.) Identify something unique about the request for the content you would like the appliance to not cache.
2.) Use local policy and the ‘exclude’ gesture to prevent the appliance from caching that content.
Here are particular examples:
1) Prevent caching of the entire sharefiles.com domain using your Visual Policy Manager
a. Add a new ‘Access’ layer
b. Set the destination to ‘sharefiles.com’
c. Set ‘Suppress Caching’ as the action
d. Click ‘Install Policy’
2) Prevent caching of a certain youtube video using local policy
Let’s assume that you would like to prevent the appliance from caching: ‘http://www.youtube.com/watch?v=FxKuSkZxE204’.
This video page ultimately sends an HTTP request for the actual flash video content, which will look something like
The URL for the flash content is dynamic in nature, but one parameter in the query stays static to identify which video to serve. This id is in bold in the above example. You can use that id to prevent the appliance from caching this very specific video. In particular:
; Sample CPL to exclude a very specific youtube video
url.domain=youtube.com url.query.substring=”id=1712ae4a4671136e” exclude(yes)
3) Prevent caching of a certain filename at rapidshare
If, for legal reasons, you need to prevent caching of a certain filename from filesharing sites like rapidshare.com, you can use the following CPL syntax:
; Sample CPL to exclude all instances of ‘Avatar.mp4’ from rapidshare.com
url.domain=rapidshare.com url.substring=’Avatar.mp4’ exclude(yes)
This policy is useful if you would like to prevent caching of ‘Avatar.mp4’ from rapidshare and will work even if multiple users uploaded the file.
It’s important to remember that a consequence of preventing content from being cached by the appliance is that the appliance can no longer obtain bandwidth savings for object(s) excluded.
For example, let’s assume you chose to exclude a very popular (viral) youtube video, which is 10 Mb in size. If this video is requested tens of thousand times over a period of one week by different clients going through your CacheFlow appliance, you could loose hundreds of gigabytes of saved server side bandwidth because the video is excluded from your appliance’s caching mechanism.