Skip to content

Instantly share code, notes, and snippets.

@dustinsenos
Created February 3, 2011 19:53
Show Gist options
  • Save dustinsenos/810065 to your computer and use it in GitHub Desktop.
Save dustinsenos/810065 to your computer and use it in GitHub Desktop.
Adds headers in an attempt to stop all files from being cached
## No Cache
#
# Add this to your development .htaccess (or .conf) in an attempt to stop web browsers
# from caching files. Make sure to remove this from your site when launching live.
#
<FilesMatch "\.*">
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "Thu, 01 Jan 1970 00:00:00 GMT"
</FilesMatch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment