I have a folder with this file: channel.html
In the same folder I have this .htaccess file
<Files channel.html>
ExpiresActive On
ExpiresDefault A31536000
Header set Cache-Control "max-age=31536000"
</Files>
curl -I /channel.html:
HTTP/1.1 200 OK
Date: Wed, 09 Nov 2011 17:27:30 GMT
Server: Apache
Accept-Ranges: bytes
X-Mod-Pagespeed: 0.9.18.7-900
Cache-Control: max-age=0, no-cache, no-store
Vary: Accept-Encoding
Content-Length: 59
Content-Type: text/html
If I add ForceType text/plain
on .htaccess it works as it should, but with the wrong Content-Type
, obviously.
What should I do to fix or debug this annoyance?
ExpiresDefault "access plus 1 year"
would be much easier to read than that mess of numbers which does the same thing.