Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Cache po stronie przeglądarki
Rysh
post
Post #1





Grupa: Zarejestrowani
Postów: 821
Pomógł: 111
Dołączył: 11.09.2006
Skąd: Biała Podlaska

Ostrzeżenie: (0%)
-----


Witam, oto mój kod w .hraccess:
Kod
<IfModule mod_expires.c>
    ExpiresActive On
    Header set cache-control: public
    ExpiresDefault "access plus 1 hour"

    ExpiresByType text/html                 "access plus 1 hour"
    ExpiresByType application/rss+xml       "access plus 1 hour"

    ExpiresByType image/x-icon              "access plus 1 year"
    ExpiresByType font/ttf                  "access plus 1 year"
    ExpiresByType image/svg+xml             "access plus 1 year"

    ExpiresByType text/css                     "access plus 1 day?
    ExpiresByType application/javascript     "access plus 1 week"

    ExpiresByType image/png                     "access plus 1 month"
    ExpiresByType image/gif                    "access plus 1 month"
    ExpiresByType image/jpg                     "access plus 1 month"
    ExpiresByType image/jpeg                "access plus 1 month"

    ExpiresByType video/ogg                 "access plus 1 month"
    ExpiresByType audio/ogg                 "access plus 1 month"
    ExpiresByType video/mp4                 "access plus 1 month"
</IfModule>

W phpinfo(); pokazuje mi:
Kod
_SERVER["HTTP_ACCEPT_ENCODING"]    gzip,deflate,sdch
_ENV["HTTP_ACCEPT_ENCODING"]    gzip,deflate,sdch


Jednak mimo to, w PageSpeed Insights (narzędzia google dla webasterów) pokazuje mi (data ważności nie określona) - dla obrazków, dlaczego?

Ten post edytował Rysh 12.04.2014, 18:40:27
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 18:20