- 论坛徽章:
- 0
|
采用了SQUID后不能立即刷新新的页面?
purge is squid command
3128 is squid port.
just telnet to that port and issue about purge command. you can use command 'squidclient' to purge. see url below for detail:
http://www.squid-cache.org/Doc/FAQ/FAQ-7.html
7.5 How can I purge an object from my cache?
Squid does not allow you to purge objects unless it is configured with access controls in squid.conf. First you must add something like
acl PURGE method PURGE
acl localhost src 127.0.0.1
http_access allow PURGE localhost
http_access deny PURGE
The above only allows purge requests which come from the local host and denies all other purge requests.
To purge an object, you can use the squidclient program:
squidclient -m PURGE http://www.miscreant.com/
If the purge was successful, you will see a ``200 OK'' response:
HTTP/1.0 200 OK
Date: Thu, 17 Jul 1997 16:03:32 GMT
Server: Squid/1.1.14
If the object was not found in the cache, you will see a ``404 Not Found'' response:
HTTP/1.0 404 Not Found
Date: Thu, 17 Jul 1997 16:03:22 GMT
Server: Squid/1.1.14 |
|