![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 25 Pomógł: 0 Dołączył: 13.11.2006 Ostrzeżenie: (0%) ![]() ![]() |
Jakie muszę zrobić nagłówki HTTP (Header), aby umożliwić przechowywanie generowanych stron przez okres 60 sekund.
|
|
|
![]()
Post
#2
|
|
![]() Grupa: Zarejestrowani Postów: 504 Pomógł: 2 Dołączył: 31.03.2006 Skąd: Londyn Ostrzeżenie: (0%) ![]() ![]() |
Ni ejestem pewien czy dobrze wpisalem Cache-Control. Tutaj masz jeszcze artykul o kontroli cache link. Cytat Any valid HTTP headers can be put in these files. This provides another way to apply the Expires header, and it's a way to add the Cache-Control headers. The relevant Cache-Control headers are: Cache-Control : max-age = [delta-seconds] Modifies the expiration mechanism, overriding the Expires header. Max-age implies Cache-Control : public. Cache-Control : public Indicates that the object may be stored in a cache. This is the default. Cache-Control : private Cache-Control : private = [field-name] Indicates that the object (or specified field) must not be stored in a shared cache and is intended for a single user. It may be stored in a private cache. Cache-Control : no-cache Cache-Control : no-cache = [field-name] Indicates that the object (or specified field) may be cached, but may not be served to a client unless revalidated with the origin server. Cache-Control : no-store Indicates that the item must not be stored in nonvolatile storage, and should be removed as soon as possible from volatile storage. Cache-Control : no-transform Proxies may convert data from one storage system to another. This directive indicates that (most of) the response must not be transformed. (The RFC allows for transformation of some fields, even with this header present.) Cache-Control : must-revalidate Cache-Control : proxy-revalidate Forces the proxy to revalidate the page even if the client will accept a stale response. Read the RFC before using these headers, there are restrictions on their use. I jeszcze RFC na ten temat Zapraszam do czytania, w podanych linkach powinienes znalezc bardzo wyczerpujace temat informacje. Pozdrawiam. Ten post edytował thornag 15.11.2006, 11:58:05 -------------------- "Wizja czasu jest szeroka, lecz kiedy sie przez nia przechodzi, czas staje sie waskimi drzwiami"
![]() |
|
|
![]() ![]() |
![]() |
Aktualny czas: 20.08.2025 - 06:31 |