View Single Post
Old 06-19-2012, 12:46 AM  
p3rsian
Confirmed User
 
Join Date: Sep 2003
Posts: 1,050
Setting up cache control header in htacces files

i am trying to tell browsers to get a fresh copy of the site (JOOMLA based) after x hours using this code in htaccess.
main question is if its ok to put PHP file in there . i could not find a site that has it but since its index.php homepage i need it.

Code:
# 2 HOURS
<filesMatch "\.(html|htm|PHP|css|js)$">
Header set Cache-Control "max-age=7200, must-revalidate"
</filesMatch>
thanx 4 helping
__________________
boro en harfa chei
p3rsian is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote