Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2003.12.04;
Скачать: CL | DM;

Вниз

Возможные значения X-Cache и X-Cache-Lookup   Найти похожие ветки 

 
Igorek ©   (2003-10-07 16:16) [0]

Задача: из заголовка ответа прокси сервера надо установить из кеша ли ответ или нет. Запрос HEAD посылается с "Pragma: no-cache".
Какие могут быть значения полей заголовка X-Cache и X-Cache-Lookup? Какие из них говорят, что ответ взят не из кеша? Может есть дока на эти поля?

Искал в сети и в форуме - не нашел.
Спасибо.


 
Dionys ©   (2003-10-07 23:00) [1]

вроде так...
промах:

X-Cache: MISS from xxx.xxx

попадание:

X-Cache: HIT from xxx.xxx


 
Igorek ©   (2003-10-08 13:02) [2]

MISS и все? А какие вообще могут быть поля? Вроде еще есть что то типа ERROR... и IGNORED.


 
Владислав ©   (2003-10-10 18:46) [3]

Может это нужно искать в спецификациях?..


 
Dionys ©   (2003-10-10 21:59) [4]

* X-Cache - this shows whether an object is available or not.
* X-Cache-Lookup - this keeps the result of a store table lookup before refresh causing rules are checked (i.e. it indicates if the object is available before any validation would be attempted).

The X-Cache and X-Cache-Lookup headers from A should both show MISS.

If A requests the object from B (which it will if the digest lookup indicates B has it - assuming B is closest peer of course :-) then there will be another set of these headers from B.

If the X-Cache header from B shows a MISS a False Hit has occurred. This means that A thought B had an object but B tells A it does not have it available for retrieval. The reason why it is not available for retrieval is indicated by the X-Cache-Lookup header. If:

* X-Cache-Lookup = MISS then either A"s (version of B"s) digest is out-of-date or corrupt OR a collision occurred in the digest (very small probability) OR B recently purged the object.
* X-Cache-Lookup = HIT then B had the object, but refresh rules (or A"s max-age requirements) prevent A from getting a HIT (validation failed).


 
Anatoly Podgoretsky ©   (2003-10-10 22:14) [5]

Dionys © (10.10.03 21:59) [4]
Источник информации?


 
Anatoly Podgoretsky ©   (2003-10-10 22:15) [6]

А кажется понял, это сообщения прокси сервера?
Если так то это из его документации?


 
Dionys ©   (2003-10-10 23:42) [7]

да... забыл ссылку...
это FAQ по Squid - прокси-сервер такой...
http://happy.kiev.ua/squid/FAQ-16.html

здесь частичный перевод...
http://linux.yaroslavl.ru/docs/faq/squid/FAQ.html



Страницы: 1 вся ветка

Текущий архив: 2003.12.04;
Скачать: CL | DM;

Наверх




Память: 0.48 MB
Время: 0.009 c
4-11721
Alternative
2003-10-08 17:33
2003.12.04
Создание потока


6-11658
Геннадий
2003-10-08 12:43
2003.12.04
Как программно изменить настройки TCP/IP (в частности, IP-адрес)?


6-11673
Erazzer
2003-10-06 23:15
2003.12.04
Передача звукового потока


8-11621
ram2003
2003-08-04 17:28
2003.12.04
OpenGL


4-11731
KADAN
2003-10-07 21:29
2003.12.04
Shut down the computer (2k, XP)