MyBB Internal: One or more warnings occured. Please contact your administrator for assistance.
WebPagetest Forums - What's the best way to leverage caching on Magento Enterprise website?

WebPagetest Forums

Full Version: What's the best way to leverage caching on Magento Enterprise website?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Our website is Megento Enterprise based- e-commerce.
Test result:
I'm working on a request for a developer to specify caching headers/or do it myself if possible/or have server provider assist with this.

In which file caching headers need to be specified?

Per Google recommendations ea. header needs to have Expires or Cache-Control (Expires preferred) and Last-Modified or Etag. Can someone provide an example with both specified with correct syntax?

I'm thinking to set all css and js files to 24 hours to start
Static images- to 30 days
3-rd party widgets - 24 hours?
What about Google Analytics, Google Tag Manager and re-marketing tags- can they be set to over 24 hours?

Thank you for any clarification that can be provided.
You just need to set up your expires headers for static resources:

<ifmodule mod_expires.c>
<Filesmatch "\.(jpg|jpeg|png|gif|js|css|swf|ico|woff|mp3)$">
ExpiresActive on
ExpiresDefault "access plus 30 days"

Should be a good starting point.

I'd also look at combining your js ( fixing if necessary ), and using sprites for the logos to get the file count down.

You might also find some improvement in using a cookie free CDN to deliver those files, but that's down to trial and error.

Looks like a well set up server, so I can't go into my usual spiel of swapping over to nginx for improved performance lol.
Reference URL's