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