Skip to content

Instantly share code, notes, and snippets.

@scsskid
Last active April 27, 2018 20:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scsskid/be5fbd1055db3e1932818873fed2c9e9 to your computer and use it in GitHub Desktop.
Save scsskid/be5fbd1055db3e1932818873fed2c9e9 to your computer and use it in GitHub Desktop.
Prevent File Caching src: https://stackoverflow.com/a/11724596
<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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment