Created
February 3, 2011 19:53
-
-
Save dustinsenos/810065 to your computer and use it in GitHub Desktop.
Adds headers in an attempt to stop all files from being cached
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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