How to best Optimise Expires Headers Code

Hi there,

<My question is about the correct Expired Headers Code for a site built with Pro.

The current code I have in .htaccess is

## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
</IfModule>
## EXPIRES CACHING ##

In speed tests with GTMetrix I have a lot of javascript files without a far-future expiration date.

Should I also add things like:
ExpiresByType application/javascript "access plus 1 year"
?

Could you please help me optimise my Expires Headers Code?

The site is
https://www.monsieurmacaron.co.nz

Thanks in advance!

Hey @freedomdesign,

I’m sorry but website optimization is outside the scope of our support. We do have a Performance guide but state above the page:

I’d recommend that you use a caching plugin and do avail of professional configuration from the plugin author.

Thank you for understanding.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.