Msg#: 4518072 posted 5:42 pm on Nov 11, 2012 (gmt 0)
I'm trying to set up caching on my site. I have shared hosting at Hostgator. I have the code it my htaccess but it doesn't seem to be working. Talking to Hostgator teck support they say they don't have that on shared accounts. Is there anyway to enable it on my end? Thanks!
Msg#: 4518072 posted 3:03 am on Nov 12, 2012 (gmt 0)
Is there any alternative?
another hosting provider or another level of hosting with your current provider which supports mod_expires.
you can provide an Expires header with your response if you are using php. this might be helpful. Conteg v0.13 available on PHP Classes - PHP Server Side Scripting forum: http://www.webmasterworld.com/php/3277772.htm [webmasterworld.com]
Msg#: 4518072 posted 10:02 am on Nov 12, 2012 (gmt 0)
Thanks guys for your response. It's funny just like 1000 other things, in a year from now this will be a trivial thing, but now it's a total unknown. I will try php once I've completely exhausted htaccess. I currently have this in my htaccess...
ExpiresActive On ExpiresDefault "access plus 10 years" ExpiresByType text/html "access plus 1 day"
I'm going to try mod_headers code now and see if that works.