Skip to content

Instantly share code, notes, and snippets.

@Auke1810
Created April 25, 2024 07:35
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 Auke1810/ed01090e396513834b74a4f9c163ba9e to your computer and use it in GitHub Desktop.
Save Auke1810/ed01090e396513834b74a4f9c163ba9e to your computer and use it in GitHub Desktop.
Stop .csv files from being stored and cached
<FilesMatch "\.(csv)$">
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