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
 
Start new topic
Odpowiedzi (1 - 2)
Pyton_000
post
Post #2





Grupa: Zarejestrowani
Postów: 8 068
Pomógł: 1414
Dołączył: 26.10.2005

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


A co mówi np. FireBug ?
Go to the top of the page
+Quote Post
motyl-pl
post
Post #3





Grupa: Zarejestrowani
Postów: 294
Pomógł: 31
Dołączył: 2.04.2010

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


Spróbuj dodać odpowiednią wartość dla cashowania w metatagach strony, "HTTP-EQUIV="CACHE-CONTROL"" z tego co dobrze pamiętam.
Go to the top of the page
+Quote Post

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: 25.08.2025 - 02:43