Sun Java System Web Proxy Server 4.0.8 发行说明

高速缓存 PURGE 功能

Proxy Server 允许 PURGE 请求清除缓存的 URL。如果成功清除了所请求的 URL,服务器会发送 HTTP 状态码为 200(正常)的响应。如果未缓存所指定的 URL,则会发送 404(未找到)响应。

在以下示例中,服务器返回值 200。

bash-2.03$ telnet localhost 8088
Trying 172.9.10.1...
Connected to localhost.
Escape character is '^]'.
PURGE http://foo.com/ HTTP/1.0

HTTP/1.1 200 OK
Server: Sun-Java-System-Web-Proxy-Server/4.0
Date: Fri, 26 Oct 2007 08:15:30 GMT
Connection: close

在以下示例中,服务器返回值 404。

Connection closed by foreign host.
bash-2.03$ telnet localhost 8088
Trying 172.9.10.1...
Connected to localhost.
Escape character is '^]'.
PURGE http://foo.com/ HTTP/1.0

HTTP/1.1 404 Not Found
Server: Sun-Java-System-Web-Proxy-Server/4.0
Date: Mon, 17 Sep 2007 10:13:28 GMT
Content-length: 96
Content-type: text/html
Connection: close