Jump to content

Speed test / Expires / .htaccess


rdshop

Recommended Posts

Hello,


 


After a speed test, I looked to add the following code inside my .htaccess. (prestashop 1.6) :



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

The purpose if to improve the cache rules, to increase the display speed. (very slow actually)


(There was no "expires" defined, until now)


 


Anyway, this operation seems not to be succesful. (speed test keep flagging this problem).


 


Any suggestion welcome ...


 


Thanks a lot !


Vince


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...