cancel
Showing results for 
Search instead for 
Did you mean: 

Leverage browser caching of static assets - unable to fix

Leverage browser caching of static assets - unable to fix

Hi,

 

I am hosting my magento site (http://www.caviarofswitzerlandshop.com) on Hostgator that supports mod_expires to .htaccess. However, whenever I change the .htaccess to set expiration for a month or a year, I still get this from WebPageTest. Any suggestions?

 

Leverage browser caching of static assets: 56/100

WARNING - (2.0 hours) - http://www.caviarofswitzerlandshop.com/skin/frontend/default/bluescale/images/search_btn.gif
WARNING - (2.0 hours) - http://www.caviarofswitzerlandshop.com/media/template/paypal_small.png
WARNING - (2.0 hours) - http://www.caviarofswitzerlandshop.com/skin/frontend/default/bluescale/images/button-small-split.gif
WARNING - (2.0 hours) - http://www.google-analytics.com/ga.js
WARNING - (2.0 hours) - http://www.caviarofswitzerlandshop.com/skin/frontend/default/bluescale/images/header_links_sp.gif
WARNING - (2.0 hours) - http://www.caviarofswitzerlandshop.com/media/template/social_icons/facebook.png
WARNING - (2.0 hours) - http://www.caviarofswitzerlandshop.com/media/template/social_icons/twitter.png
WARNING - (2.0 hours) - http://www.caviarofswitzerlandshop.com/skin/frontend/default/bluescale/favicon.ico
WARNING - (2.0 hours) - http://www.caviarofswitzerlandshop.com/skin/frontend/default/bluescale/images/footer_links_block_lin...
WARNING - (2.0 hours) - http://www.caviarofswitzerlandshop.com/skin/frontend/default/bluescale/images/blue_btn_split.gif
WARNING - (2.0 hours) - http://www.caviarofswitzerlandshop.com/skin/frontend/default/default/css/print.css
WARNING - (2.0 hours) - http://www.caviarofswitzerlandshop.com/media/catalog/product/cache/1/small_image/135x135/9df78eab335...
WARNING - (2.0 hours) - http://www.caviarofswitzerlandshop.com/skin/frontend/default/bluescale/images/page_bg.gif
WARNING - (2.0 hours) - http://www.caviarofswitzerlandshop.com/skin/frontend/default/bluescale/css/slider.css
WARNING - (2.0 hours) - http://www.caviarofswitzerlandshop.com/skin/frontend/default/bluescale/images/logo.gif
WARNING - (2.0 hours) - http://www.caviarofswitzerlandshop.com/skin/frontend/default/bluescale/css/skin.css
WARNING - (2.0 hours) - http://www.caviarofswitzerlandshop.com/skin/frontend/default/bluescale/css/webandpeople/custommenu/c...
WARNING - (2.0 hours) - http://www.caviarofswitzerlandshop.com/skin/frontend/base/default/css/widgets.css
WARNING - (2.0 hours) - http://www.caviarofswitzerlandshop.com/media/template/home_imageelle.jpg
WARNING - (2.0 hours) - http://www.caviarofswitzerlandshop.com/media/template/home_imageellegance.jpg
WARNING - (2.0 hours) - http://www.caviarofswitzerlandshop.com/media/template/options.gif
WARNING - (2.0 hours) - http://www.caviarofswitzerlandshop.com/media/template/home_right_bottom.jpg
WARNING - (2.0 hours) - http://www.caviarofswitzerlandshop.com/media/template/home_right_top.jpg
WARNING - (2.0 hours) - http://www.caviarofswitzerlandshop.com/media/template/home_imagemagnificence.jpg
WARNING - (2.0 hours) - http://www.caviarofswitzerlandshop.com/skin/frontend/default/default/css/styles.css

 

Thanks

1 REPLY

Re: Leverage browser caching of static assets - unable to fix

Hello,

 

You used Apache server?

If you used Apache server, you add these line to .htaccess Magento.

 

<IfModule mod_expires.c>
          <FilesMatch "\.(jpe?g|png|gif|js|css)$">
                      ExpiresActive On
                      ExpiresDefault "access plus 1 week"
          </FilesMatch>
</IfModule>

 

.htaccess under Magento root folder:

 

Problem solved? Click Accept as Solution!