Notes de version de un Java System Web Proxy Server 4.0.8

Fonction de cache PURGE

Le Proxy server autorise les requêtes PURGE à supprimer l'URL caché. Si l'URL requis est purgé avec succès, le serveur envoie une réponse contenant le code de statut HTTP 200 (OK). Si l'URL spécifié n'est pas caché, une réponse 404 (Not Found) est envoyée.

Dans l'exemple suivant, le serveur renvoie la valeur 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

Dans l'exemple suivant,le serveur renvoie la valeur 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