The Media Accelerator automatically caches static media files for optimal performance. The default cache time is 30 minutes. Currently the following file types are cached by the Media Accelerator:
.jpg, .gif, .png, .mp3, .wav, .wma & .swf
If you want to bypass the caching of an individual file, you can include a query string in your HTML. For example:
Change this:
<img src=”image.gif”>
To this:
<img src=”image.gif?cache=0″>
If you want to disable caching for all media files in a particular site without changing any HTML code, you can use an .htaccess in your public directory for your website. This syntax prohibits caching of all files by adding an Expires header with a zero value:
ExpiresActive on
ExpiresDefault A0
If you only want to disable the cache for a particular type of file, you can use the MIME type of the file to identify it:
ExpiresActive on
ExpiresByType image/jpeg A0
Or, you can disable cache for a particular file like this:
<Files image.png>
ExpiresActive on
ExpiresDefault A0
</Files>
Or, you can disable cache for a file matching a particular pattern:
<Files *.jpg>
ExpiresActive on
ExpiresDefault A0
</Files>
Comments
0 comments
Article is closed for comments.