amschaal / bioshare

MIT License
6 stars 2 forks source link

Disable HTTP caching for file download? #61

Open amschaal opened 3 years ago

amschaal commented 3 years ago

consider disabling HTTP caching for downloads. Might be something like this in apache config:

Initialize mod_rewrite

RewriteEngine On <FilesMatch ".(html|htm|js|css)$"> FileETag None

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, 12 Jan 1980 05:00:00 GMT"

However, mod_xsendfile is what is setting these, so I'm not sure how this will work: https://tn123.org/mod_xsendfile/