|
|||
![]()
ich habe das folgende in meiner htacceess, aber bei dem Test von https://tools.pingdom.com/ wird das nicht erkannt(null Punkte) und es kommt der Hinweis:
add Expired headers Code:
<IfModule mod_expires.c> ExpiresActive On ExpiresDefault "access plus 1 month" ExpiresByType text/html A36000 ExpiresByType text/css "access plus 1 month" ExpiresByType application/javascript "access plus 1 month" ExpiresByType image/gif "access plus 1 year" ExpiresByType image/jpg "access plus 1 year" ExpiresByType image/jpeg "access plus 1 year" ExpiresByType image/png "access plus 1 year" ExpiresByType image/svg "access plus 1 month" ExpiresByType image/svg+xml "access plus 1 month" ExpiresByType image/x-icon "access plus 1 year" ExpiresByType font/opentype "access plus 1 year" ExpiresByType font/eot "access plus 1 year" ExpiresByType font/ttf "access plus 1 year" ExpiresByType application/x-font-ttf "access plus 1 year" ExpiresByType application/font-woff "access plus 1 year" ExpiresByType application/x-font-woff "access plus 1 year" ExpiresByType font/woff "access plus 1 year" ExpiresByType application/font-woff2 "access plus 1 year" </IfModule> |
Sponsored Links |
|
|||
![]()
bei meinen Nachforschungen bin ich auch das folgende gestoßen, was ich noch nicht integriert hatte:
Code:
<IfModule mod_headers.c> <FilesMatch "\.(ico|pdf|flv|swf|js|css|gif|png|jpg|jpeg|txt)$"> Header set Cache-Control "max-age=2592000, public" </FilesMatch> </IfModule> Manche setzen den Wert auf null. |
Sponsored Links |
|
|||
![]()
natürlich kommt es darauf an, was man haben will.
in welchen Fällen setzt man den Wert hoch an und in welchen Fällen ist es vorteilhaft, wenn man den Wert niedrig ansetzt? und was ist denn der Unterschied zu mod_expires? |
![]() |
Themen-Optionen | |
Ansicht | |
|
|
![]() |
||||
Thema | Autor | Forum | Antworten | Letzter Beitrag |
Springen des Headers vermeiden | runner | CSS | 7 | 26.09.2016 07:10 |
how to add slide show image in css 5 | Arohicool | CSS | 2 | 22.08.2014 11:39 |
falsche Darstellung des Headers im IE | jhonnybravo | CSS | 14 | 28.07.2009 15:59 |
Problem (Warning: Cannot modify header information - headers already sent by ....) | georgzed | Serveradministration und serverseitige Scripte | 6 | 18.02.2009 00:02 |
headers already sent | bussela | Serveradministration und serverseitige Scripte | 8 | 16.11.2008 22:58 |