guido59710 Posted August 8 Share Posted August 8 Bonjour, J'utilise Prestashop 8.2 et visiblement mes durée de mises en cache ne sont pas les bonnes ( 5 minutes). D'après ce que j'ai lu il faudrait plutôt mettre 5 jours. Est ce que quelqu'un pourrait m'indiquer où et comment modifier ce paramètre? D'avance merci. Link to comment Share on other sites More sharing options...
WebCommercify Posted August 8 Share Posted August 8 Salut, Je suis tombé sur un fil de discussion qui pourrait vraiment t’aider : https://groups.google.com/g/mod-pagespeed-discuss/c/sEQTKi4oofk?pli=1 Donne-moi ton avis après avoir jeté un œil ! Link to comment Share on other sites More sharing options...
Knowband Plugins Posted August 8 Share Posted August 8 Vous devez configurer la mise en cache des fichiers statiques via htaccess. <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/jpg "access 5 day" ExpiresByType image/jpeg "access 5 day" ExpiresByType image/gif "access 5 day" ExpiresByType image/png "access 5 day" ExpiresByType image/webp "access 5 day" ExpiresByType image/svg+xml "access 5 day" ExpiresByType text/css "access 5 day" ExpiresByType application/javascript "access 5 day" ExpiresByType application/x-javascript "access 5 day" ExpiresByType font/ttf "access 5 day" ExpiresByType font/otf "access 5 day" ExpiresByType font/woff "access 5 day" ExpiresByType font/woff2 "access 5 day" ExpiresByType application/vnd.ms-fontobject "access 5 day" </IfModule> Vous devez ajouter ces lignes dans le fichier htaccess (si vous utilisez un serveur Apache). Link to comment Share on other sites More sharing options...
guido59710 Posted August 8 Author Share Posted August 8 (edited) 2 hours ago, Knowband Plugins said: Vous devez configurer la mise en cache des fichiers statiques via htaccess. <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/jpg "access 5 day" ExpiresByType image/jpeg "access 5 day" ExpiresByType image/gif "access 5 day" ExpiresByType image/png "access 5 day" ExpiresByType image/webp "access 5 day" ExpiresByType image/svg+xml "access 5 day" ExpiresByType text/css "access 5 day" ExpiresByType application/javascript "access 5 day" ExpiresByType application/x-javascript "access 5 day" ExpiresByType font/ttf "access 5 day" ExpiresByType font/otf "access 5 day" ExpiresByType font/woff "access 5 day" ExpiresByType font/woff2 "access 5 day" ExpiresByType application/vnd.ms-fontobject "access 5 day" </IfModule> Vous devez ajouter ces lignes dans le fichier htaccess (si vous utilisez un serveur Apache). Bonjour, Merci pour ta réponse. J'ai bien modifié les valeurs mais cela ne change rien. Voilà mon fichier avant modifications </Files> <IfModule mod_expires.c> ExpiresActive On AddType image/webp .webp ExpiresByType image/webp "access plus 1 month" ExpiresByType image/avif "access plus 1 month" 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" ExpiresByType image/svg+xml "access plus 1 year" ExpiresByType image/vnd.microsoft.icon "access plus 1 year" ExpiresByType application/font-woff "access plus 1 year" ExpiresByType application/x-font-woff "access plus 1 year" ExpiresByType font/woff2 "access plus 1 year" ExpiresByType application/vnd.ms-fontobject "access plus 1 year" ExpiresByType font/opentype "access plus 1 year" ExpiresByType font/ttf "access plus 1 year" ExpiresByType font/otf "access plus 1 year" ExpiresByType application/x-font-ttf "access plus 1 year" ExpiresByType application/x-font-otf "access plus 1 year" </IfModule> Edited August 8 by guido59710 (see edit history) Link to comment Share on other sites More sharing options...
Prestashop Addict Posted August 11 Share Posted August 11 Si c'est bon pourtant 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