In message <_A3575@delegate-en.ML_> on 11/11/06(14:11:43)
you "Tetsu Saiga" <firstname.lastname@example.org> wrote:
|The HTTP proxy runs with "delegated -P8080 SERVER=http CACHE=do".
|Files are cached but they do not get used after the same file is
|retrieved. Instead the file is retrieved and then re-cached.
|I can force cache to be used with "delegated -P8080 SERVER=http
|CACHE=do CONNECT="cache:*:*"". This makes the page load only if
|there's a cache and cache retrieval works fine. However, non-cache
|pages won't work.
|Here are some logs for HTTP with caching, caching only, and the
|response header. Logs are for different files on the same host.
|Outputs were generally the same except for the file name.
|I don't see a lot of difference except with cache only there's a "HTTP
|cache-VALID". Any ideas on how to get the cache working or force it to
|Cache not working log:
| 5+2/6/6: REQUEST = (no-cache)[http://xxx.xxx.xxx.xxx:80/] GET
This "(no-cache)" in the log means the request from the client indicated
not to use the cache, maybe with "Pragma: no-cache" or "Cache-Control:
max-age=0" or so which is issued with a "Reload button" of the browser.
You can record the request header into the LOGFILE with a parameter:
The request should be with "If-Modified-Since" field and, if there has
been no modification on the data, the response from the server will be
"304 Not-changed" without body to be rewritten to the cache.
9 9 Yutaka Sato <email@example.com> http://delegate.org/y.sato/
( ~ ) National Institute of Advanced Industrial Science and Technology
_< >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
Do the more with the less -- B. Fuller