Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: help with set headers htaccess
01-24-2012, 01:57 PM #1
help with set headers htaccess
following on from this thread about setting expire headers
set expire header
2 points came out of that discussion
1) does my host provider allow headers to be set
2) I should use htaccess
I have checked with my host provider to see if I am allowed to set headers and they said
"If that is any change that you can carry out via .htaccess then you can but if that needs any modules installation server wide, then its not supported."
So I think I can.
and I have read info on htaccesss given in this link
so now I have this in my htaccess (from above link)
Header set Cache-Control "public"
Header set Expires "Mon, 01 Jan 2013 20:00:00 GMT"
I have two issues
1) I have no idea if this is right or if it is being applied ----- how do I check / know if these headers are set?
2) I think I should also set a Last-Modified header too --- but I can't find an example to copy to add in to the above.
I really need some help
by the way Firefox xhows this for response header info
Date: Tue, 24 Jan 2012 12:52:22 GMT
01-25-2012, 04:37 AM #2
Ok I have decided after a lot of reading to forget the last modified header since I have come across this 'unset Last-Modified' several times.
And since the htaccess I have above doesn't seem to cause any issuse I'll just leave it as is even tho I have no idea if those headers are actually set.