Turn off Web Server File CachingLast Updated on Thursday, 13 March 2014 17:23 Written by Rob Turner Hits: 5211 |
In a .htaccess file add the following and add the file types into the FilesMatch line seperating with a | for all files you dont want the server to cache.
<FilesMatch "\.(html|htm|js|css)$">
FileETag None
<ifModule mod_headers.c>
Header unset ETag
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
</ifModule>
</FilesMatch>
source: http://www.askapache.com/htaccess/using-http-headers-with-htaccess.html