htaccess festlegen Ablauf js
Ich verwende folgenden code in meiner htaccess für leverage browser cache,Sie hat es mit Ablauf von 1 Monat für
javascript, aber wenn ich test das google page speed insight der er fragt, erhöhen verschiedene js Ablauf, und es zeigt, festgelegt als 2 Tage als default, warum es passiert?
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 7 days"
ExpiresByType image/jpeg "access 7 days"
ExpiresByType image/gif "access 7 days"
ExpiresByType image/png "access 7 days"
ExpiresByType text/css "access 7 days"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 2 days"
</IfModule>
## EXPIRES CACHING ##
Du musst angemeldet sein, um einen Kommentar abzugeben.
Versuchen Einstellung:
Siehe auch: http://www.quickonlinetips.com/archives/2010/05/leverage-browser-caching-increase-website-speed/
application/json
im Falle Sie eine AJAX-Zeug.Versuchen:
ExpiresActive On
ExpiresByType text/javascript "access plus 1 years"
ExpiresByType application/x-javascript "access plus 1 years"
ExpiresByType application/javascript "access plus 1 years"
Links:
http://httpd.apache.org/docs/current/mod/mod_expires.html
http://www.inmotionhosting.com/support/website/htaccess/apache-module-mod-expires