sinisrus Posted November 6, 2013 Share Posted November 6, 2013 (edited) Bonjour, Je suis sur prestashop 1.5.6 j'ai ajouté dans mon .htaccess : # BEGIN Cache-Control Headers<IfModule mod_headers.c> <FilesMatch "\\.(ico|jpe?g|png|gif|swf|css|gz)$"> Header set Cache-Control "max-age=2592000, public" </FilesMatch> <FilesMatch "\\.(js)$"> Header set Cache-Control "max-age=2592000, private" </FilesMatch><filesMatch "\\.(html|htm)$">Header set Cache-Control "max-age=7200, public"</filesMatch># Disable caching for scripts and other dynamic files<FilesMatch "\.(pl|php|cgi|spl|scgi|fcgi)$">Header unset Cache-Control</FilesMatch></IfModule># END Cache-Control Headers et j'ai demander à mon hébergeur d'activer les modules apache pour que le cache-controle conctionne. Pourtant avec pagespeed de google j'ai un point rouge qui me dit que le cache controle n'est pas activé (voir lien ci-dessous) http://developers.google.com/speed/pagespeed/insights/?url=www.royal-sport.fr&tab=desktop merci d'avance si vous avez des solutions Edited November 6, 2013 by sinisrus (see edit history) Link to comment Share on other sites More sharing options...
Jean Francois G Posted November 6, 2013 Share Posted November 6, 2013 voici le mien qui fonctionne avec google speed : <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/gif "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType text/css "access plus 1 week" ExpiresByType text/javascript "access plus 1 week" ExpiresByType application/javascript "access plus 1 week" ExpiresByType application/x-javascript "access plus 1 week" ExpiresByType image/x-icon "access plus 1 year"</IfModule>FileETag INode MTime Size<IfModule mod_deflate.c> <IfModule mod_filter.c> AddOutputFilterByType DEFLATE text/html text/css text/javascript application/javascript application/x-javascript </IfModule></IfModule> 1 Link to comment Share on other sites More sharing options...
sinisrus Posted November 7, 2013 Author Share Posted November 7, 2013 Oui j'ai ça aussi dans mon .htaccess mais ce dont je parle c'est du "mod_headers.c" Link to comment Share on other sites More sharing options...
mattheoh Posted April 28, 2016 Share Posted April 28, 2016 A priori le point "exploiter la mise en cache du navigateur" est toujours à corriger sur ton site. As tu demandé à ton hébergeur de vérifier si le plugin / mod expires d'Apache était activé ? Si pas le cas, il faut qu'il l'active. voir ici : https://www.prestashop.com/forums/topic/339219-optimisation-page-speed/?do=findComment&comment=1713883 A+ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now