Форум: "Сети";
Текущий архив: 2003.12.04;
Скачать: [xml.tar.bz2];
ВнизВозможные значения 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;
Скачать: [xml.tar.bz2];
Память: 0.45 MB
Время: 0.005 c