This is probably really easy to solve, I've checked on stackoverflow but I did not find anything:
I have WAMP Installed with PHP and Apache, running the latest version of the Laravel successfully.
I have a cache.manifest file, it is loading correctly however it doesn't seem to refresh even if I change its content.
So I tried a few things I found, including:
AddType text/cache-manifest .manifest
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
<FilesMatch "\.manifest$">
Header set Cache-Control "max-age=259200, proxy-revalidate"
</FilesMatch>
When I add the FilesMatch section, I always get an Internal Server Error
What could I do to prevent ONLY the cache.manifest file to be cached? I have also tried other things with FileMatch but it fails everytime (I had that kind of code for images (png gif...) for example and it didn't work.
Thank you for your help.
Use an expire by type
The
AddType
statement is already present to ensure that manifest files have the right mime-type. This can be used to specify appropriate cache headers:This and more useful information is available in the html5 boilerplate htaccess file.
Another solution is to use PHP, because according to HTML5 specification the extension of the cache-manifest file is not matter:
Then you can use: