MyBB Internal: One or more warnings occured. Please contact your administrator for assistance.
How to set Leverage browser caching
Current time: 04-06-2020, 04:01 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to set Leverage browser caching
07-27-2016, 11:49 PM
Post: #1
How to set Leverage browser caching
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
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
How to set Leverage browser caching - picj86 - 07-27-2016 11:49 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)