Thibaut_ wrote:
Hi,
I do some large batch processing and would like to explicitely cache every
page I request. (Because I sometimes request multiple pages again and don't
want to hammer the servers). If I want a fresh copy, my programm explicitely
sends a No-cache header to squid.
I'm using the following refresh pattern:
refresh_pattern . 1440 20% 4320 override-expire override-lastmod
ignore-no-cache ignore-private ignore-auth ignore-stale-while-revalidate
which however doesn't cover certain pages sending these headers:
Expires: Thu, 19 Nov 1981 08:52:00 GMT
... which is held because of override-expire
Cache-Control:
::: no-store,
... you need a version of squid with ignore-no-store.
::: no-cache,
... you said you wanted the pages to refresh when this was given.
You then use ignore-no-cache and claim this request is one you do want
refreshed. Make up your mind!
> must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
whieh results in a:
1242308981.140 167 127.0.0.1 TCP_MISS/200 30815 GET .....
How can I cache those as well?
"If I want a fresh copy, my programm explicitely sends a No-cache header
to squid."
Your program explicitly sent the "Cache-Control: no-cache" header to Squid.
Amos
--
Please be using
Current Stable Squid 2.7.STABLE6 or 3.0.STABLE15
Current Beta Squid 3.1.0.7