Msg#: 4518015 posted 1:37 am on Nov 12, 2012 (gmt 0)
Ok thanks! So prob better to match a period. I have a question you may know the answer to. I'm desperately trying to enable coaching for my website. I put this in my htaccess...
ExpiresActive On ExpiresDefault "access plus 10 years" ExpiresByType text/html "access plus 1 day"
But it's not caching. Reading for hours I see mod_expires needs to be on the server in order for my code to work. I have Hostgator shared server. I have talked to multiple tecks at Hostgator and they all are unable to give me an answer if they have mod_expires or mod_headers on the server. I am at a loss. Have any of you experienced any of this and possibly a fix?
Msg#: 4518015 posted 3:12 am on Nov 12, 2012 (gmt 0)
Hm, thought this thread sounded familiar. Some hosts won't give out details about what mods are available or what version of Apache they're using. Mine won't-- but to make up for it they show you a nifty trick for revealing exactly which mods you have available. (The one that involves #printenv and an htaccess file. You've probably seen it.)
Are you testing it on new pages that you haven't previously visited? Emptying your browser cache or preferably testing in an entirely different browser? A default of "expires never" -- which is basically what "access plus 10 years" means -- will probably be overridden by some lower number set by your browser.
If the Expires header is intended to apply to everything, you don't need the <Files> or <FilesMatch> envelope at all. But that's the least of your problems.