Sun Java System Web Proxy Server 4.0.7 릴리스 노트

캐시 PURGE 기능

Proxy Server에서는 캐시 URL을 지우는 PURGE 요청이 허용됩니다. 요청된 URL이 성공적으로 지워지면 HTTP 상태 코드 200(OK)이 포함된 응답을 서버에서 보냅니다. 지정된 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