Hi,
What is the right way to tell squid to forget its cache and reload a fresh
copy from the source?
I've been googling around, scooping the right answer but still
failed:
,----- [from 'Caching Tutorial for Web Authors and Webmasters']
| you can force a reload (in Netscape, holding down shift while pressing
| 'reload' will do this by issuing a Pragma: no-cache request header) while
| using the cache.
`-----
This does not prevent squid from serving from its cache.
I've also tried the very own tool that comes with squid -- client,
-r Force cache to reload URL.
Still, no luck. Here is the test result:
$ client -vr http://localhost/~tong/test/
headers: 'GET http://localhost/~tong/test/ HTTP/1.0
Pragma: no-cache
Accept: */*
'
HTTP/1.0 200 OK
Date: Tue, 25 Nov 2003 01:28:40 GMT
Server: Apache/2.0.40 (Red Hat Linux)
Content-Length: 854
Content-Type: text/html; charset=ISO-8859-1
Age: 740
X-Cache: HIT from xpt
Proxy-Connection: close
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
[...]
The page is still an old copy.
'Caching Tutorial for Web Authors and Webmasters' says "or, you
can have the cache administrator delete the object through their
interface." But I think this is just too much a burden for both me
and my cache administrator.
What is the right way then?
Thanks
Tong
Received on Mon Nov 24 2003 - 19:19:33 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:21:34 MST