wiki:disable_cacheing_files_certain_extension_apache
Table of Contents
Disable cacheing of files with certain extension in apache
Enable headers module:
a2enmod headers
In vhost config add:
<filesMatch ".(apk)$"> Header set Cache-Control "no-store, no-cache, must-revalidate" </filesMatch>
This sends a header field to browser instructing it not to cache files ending with .apk.
Restart apache:
service apache2 restart
Tested on
See also
References
wiki/disable_cacheing_files_certain_extension_apache.txt · Last modified: 2022/09/19 23:49 by antisa