2016-08-01 10 views
1

ich diesen Code in .htaccess bin mitWie Hinzufügen Verfällt Header

<IfModule mod_expires.c> 
ExpiresActive on 
ExpiresDefault "access plus 1 month" 
ExpiresByType image/gif "access plus 1 month" 
ExpiresByType image/png "access plus 1 month" 
ExpiresByType image/jpg "access plus 1 month" 
ExpiresByType image/jpeg "access plus 1 month" 
ExpiresByType text/html "access plus 3 days" 
ExpiresByType text/xml "access plus 1 seconds" 
ExpiresByType text/plain "access plus 1 seconds" 
ExpiresByType application/xml "access plus 1 seconds" 
ExpiresByType application/rss+xml "access plus 1 seconds" 
ExpiresByType application/json "access plus 1 seconds" 
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-ico "access plus 1 year" 
ExpiresByType image/x-icon "access plus 1 year" 
ExpiresByType application/pdf "access plus 1 month" 
<IfModule mod_headers.c> 
    Header unset ETag 
    Header unset Pragma 
    Header unset Last-Modified 
    Header append Cache-Control "public, no-transform, must-revalidate" 
    Header set Last-modified "Tue, 1 Aug 2016 10:10:10 GMT" 
</IfModule> 
</IfModule> 

Aber gtmetrix.com und tools.pingdom.com zeigt 5 statische Komponenten ohne weit Zukunft Ablaufdatum.

http://fonts.googleapis.com/css?family=Lato:900 
http://fonts.googleapis.com/css?family=Merriweather:regular,700 
http://www.google-analytics.com/analytics.js 
http://www.statcounter.com/counter/counter.js 
http://c.statcounter.com/t.php?sc_project=11059157&java=1&security=2d5e45b2&u1=D82D61ABF18A4FF9620A96B3F31C97F5&sc_random=0.5705474616082253&jg=new&rr=1.1.1.1.1.1.1.1.1&resolution=1024&h=861&camefrom=&u=http%3A//hddregenerator.net/&t=HDD%20REGENERATOR.%2015%25%20Discount%20%7C%20HDD%20Regenerator%20for%20%2484.99.%20Free%20Demo%20download.%2030-day%20money%20back%20guarantee.%20Free%201%20year%20minor%20update.%20Unlimited%20license%20period.&rcat=d&rdom=d&rdomg=new&bb=1&sc_snum=1&sess=a181b5&p=0&invisible=1 

Wie Laufzeit Köpfe für diese 5 Komponenten hinzufügen ?!

+1

können Sie eine der Plugin für gleiche W3 Total Cache WP Super-Cache WP Rakete –

+0

ich den Gesamt-Cash verwenden verwenden, aber die Meldung über die ohnehin Header abläuft. – Merkucio

+0

versuchen, WP Super Cache zu installieren –

Antwort

1

Ich glaube, Sie können nicht zu diesen 5 Komponenten Expire-Header hinzufügen, einfach weil sie nicht auf Ihrem eigenen Server sind, und deshalb haben Sie keine Kontrolle über sie.

Wenn Sie nach einem großen Expire-Header-Plugin suchen, empfehle ich Far Future Expiry Header.

Verwandte Themen