Is anybody know how to set Leverage browser caching in .htaccess.
I have already below setting in my .htaccess but every time I am checking my page with pagespeed tools i am not getting expected results and seems image files are set for 5 days only.
Header Directives
<ifModule mod_headers.c>
Header unset ETag
Header unset Last-Modified
</ifModule>
# year
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|swf|mp3|mp4)$">
Header set Cache-Control "max-age=432000, public"
</FilesMatch>
#2 hours
<FilesMatch "\.(html|htm|xml|txt|xsl)$">
Header set Cache-Control "max-age=7200, must-revalidate"
</FilesMatch>
<FilesMatch "\.(js|css)$">
Header set Cache-Control "max-age=3600, public"
#SetOutputFilter DEFLATE
#Header set Expires "Thu, 15 Apr 2010 20:00:00 GMT"
</FilesMatch>
Following are the results of my pagespeed test:
6e5fb8d27136e95/w/o/womens_clothing.jpeg (5 days)
You can view my site if you need to more investigation: http://www.shepkart.com
– P J
http://www.shepkart.com