rdshop Posted February 23, 2017 Share Posted February 23, 2017 Bonjour, Suite à un test de rapidité, j'ai cherché à ajouter le code suivant dans .htaccess de prestashop : ## 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 ## Le but, donc, est de faire mettre en cache pour augmenter la rapidité. (Il n'y avait aucun "expires" défini auparavant) Cependant, malgré le reboot du serveur, ça ne semble pas fonctionner : le test me fait tj des warnings. Quelqu'un a-t-il un avis ? Merci ! Bien cordialement, Vince Link to comment Share on other sites More sharing options...
Johann Posted February 24, 2017 Share Posted February 24, 2017 En tout cas, pas besoin de relancer apache pour prendre en compte les modifications du htaccess ! Link to comment Share on other sites More sharing options...
rdshop Posted February 24, 2017 Author Share Posted February 24, 2017 Oui, et bien reboot ou pas, il semble que des "expires" ne sont pas pris en compte ... Merci quand même :-) Link to comment Share on other sites More sharing options...
GT ITECH Posted February 24, 2017 Share Posted February 24, 2017 Vérification simple, ton serveur web à t'il au moins le module "mod_expires.c" ? ça semble bête certes, mais se serait une explication au non fonctionnement du code du htaccess. Autre piste, ton serveur web lit t'il bien les instructions des htaccess ? 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