Bonjour
J'ai rédiger mon .htaccess comme d'habitude mais cette fois rien ne fonctionne…
Voyez vous le problème que je cherche à résoudre depuis plusieurs heures ?
Merci !
J'ai rédiger mon .htaccess comme d'habitude mais cette fois rien ne fonctionne...
Bonsoir @CalvinG
Avec aussi peu de détails et une copie de .htaccess fugitive, difficile de t'aider.
# DO NOT REMOVE THIS LINE AND THE LINES BELOW SSL_REDIRECT:agt-geometre.com<br /> RewriteEngine on<br /> RewriteCond %{HTTPS} off<br /> RewriteCond %{HTTP_HOST} agt-geometre.com$<br /> RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]<br /><br /> RewriteEngine On<br /> RewriteCond %{HTTP_HOST} !^www\. [NC]<br /> RewriteRule ^(.*)$ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]<br /> # DO NOT REMOVE THIS LINE AND THE LINES ABOVE SSL_REDIRECT:agt-geometre.com<br /><br /> ## EXPIRES CACHING ##<br /> <br /> ExpiresActive On<br /><br /> # Images<br /> ExpiresByType image/jpeg "access plus 1 year"<br /> ExpiresByType image/gif "access plus 1 year"<br /> ExpiresByType image/png "access plus 1 year"<br /> ExpiresByType image/webp "access plus 1 year"<br /> ExpiresByType image/svg+xml "access plus 1 year"<br /> ExpiresByType image/x-icon "access plus 1 year"<br /><br /> # Video<br /> ExpiresByType video/webm "access plus 1 year"<br /> ExpiresByType video/mp4 "access plus 1 year"<br /> ExpiresByType video/mpeg "access plus 1 year"<br /><br /> # Fonts<br /> ExpiresByType font/ttf "access plus 1 year"<br /> ExpiresByType font/otf "access plus 1 year"<br /> ExpiresByType font/woff "access plus 1 year"<br /> ExpiresByType font/woff2 "access plus 1 year"<br /> ExpiresByType application/font-woff "access plus 1 year"<br /><br /> # CSS, JavaScript<br /> ExpiresByType text/css "access plus 1 month"<br /> ExpiresByType text/javascript "access plus 1 month"<br /> ExpiresByType application/javascript "access plus 1 month"<br /><br /> # Others<br /> ExpiresByType application/pdf "access plus 1 month"<br /> ExpiresByType image/vnd.microsoft.icon "access plus 1 year"<br /> <br /> ## EXPIRES CACHING ##<br /><br /> # BEGIN Cache-Control Headers<br /> <br /> <br /> Header set Cache-Control "max-age=2592000, public"<br /> <br /> <br /> Header set Cache-Control "max-age=2592000, private"<br /> <br /> <br /> Header set Cache-Control "max-age=7200, public"<br /> <br /> # Disable caching for scripts and other dynamic files<br /> <br /> Header unset Cache-Control<br /> <br /> <br /> # END Cache-Control Headers
Désolé elle chargeait ![]()
Désolé elle chargeait ![]()
En gros la mise en cache ne fonctionne pas
En gros la mise en cache ne fonctionne pas
Quelle mise en cache ?
Chez moi, l'affichage est correct.
Quand je test mon site sur PageSpeed Insights ou autres il me met "
Diffusez des éléments statiques grâce à des règles de cache efficaces"
La mise des fichiers jpg ou css en cache ne se fait pas selon eux
Bonjour,
Non non y a bien du cache.
Le truc c'est que Google attends un cache de 30J alors que vous avez 1an de cache; voilà pourquoi il est pas content.
Cordialement, janus57