https://issues.apache.org/bugzilla/show_bug.cgi?id=35217
--- Comment #15 from rahul <[EMAIL PROTECTED]> 2008-08-26 12:24:05 PST --- > Created an attachment (id=22485) --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22485) [details] > max-age in the extension value (plain) > Saved test case attachment as text per rahul request. This test case uses the > following valid Cache-Control header: > > Cache-Control: public, foobar=" max-age=8,max-age=8 "\r\n Thanks a lot, it is much easier now, and I understand where we were not on the same page. > Again, I do not know whether this bug has been fixed since it was reported. Let me know if this is not what you are referring to. ------------------------------------------------------ First a simple request with out directives to make it cache. |echo "GET http://webproxy.india.sun.com:8000/tst.txt HTTP/1.0\r\n\r\n" | nc 0 8080 HTTP/1.1 200 OK Date: Tue, 26 Aug 2008 18:52:36 GMT Server: Sun-Java-System-Web-Proxy-Server/4.0.4 Last-Modified: Tue, 26 Aug 2008 11:12:33 GMT Content-length: 5 Etag: "5-48b3e521" Accept-ranges: bytes Via: 1.0 agneyam:8000 Age: 30 Connection: close Content-Type: text/plain abcd as snooped in the backend. --> [ GET /tst.txt HTTP/1.1 Host: webproxy.india.sun.com:8000 Cache-Control: "max-age=0"=me Via: 1.0 agneyam:8000 Connection: Keep-Alive ] ------------------------------------------------------ Now trying with a vaild cache-control max-age (valid behavior). |echo "GET http://webproxy.india.sun.com:8000/tst.txt HTTP/1.0\r\nCache-Control: max-age=0\r\n\r\n" | nc 0 8080 HTTP/1.1 200 OK Date: Tue, 26 Aug 2008 18:53:43 GMT Server: Sun-Java-System-Web-Proxy-Server/4.0.4 Content-length: 5 Etag: "5-48b3e521" Accept-ranges: bytes Via: 1.0 agneyam:8000 Last-Modified: Tue, 26 Aug 2008 11:12:33 GMT Connection: close Content-Type: text/plain abcd --> [ GET /tst.txt HTTP/1.1 Host: webproxy.india.sun.com:8000 Cache-Control: max-age=0 If-None-Match: "5-48b3e521" If-Modified-Since: Tue, 26 Aug 2008 11:12:33 GMT Via: 1.0 agneyam:8000 Connection: Keep-Alive ] <-- [ HTTP/1.1 304 Use local copy Server: Sun-Java-System-Web-Proxy-Server/4.0.4 Date: Tue, 26 Aug 2008 18:53:43 GMT Etag: "5-48b3e521" ] ------------------------------------------------------ Now trying an invalid cache-control directive, |echo "GET http://webproxy.india.sun.com:8000/tst.txt HTTP/1.0\r\nCache-Control: \"max-age=0\"\r\n\r\n" | nc 0 8080 HTTP/1.1 200 OK Date: Tue, 26 Aug 2008 18:53:43 GMT Server: Sun-Java-System-Web-Proxy-Server/4.0.4 Last-Modified: Tue, 26 Aug 2008 11:12:33 GMT Content-length: 5 Etag: "5-48b3e521" Accept-ranges: bytes Via: 1.0 agneyam:8000 Age: 2 Connection: close Content-Type: text/plain abcd --> No request to the back end observed. ------------------------------------------------------ Now trying an second invalid cache-control directive, |echo "GET http://webproxy.india.sun.com:8000/tst.txt HTTP/1.0\r\nCache-Control: \" max-age=0 \"=foobar \r\n\r\n" | nc 0 8080 HTTP/1.1 200 OK Date: Tue, 26 Aug 2008 18:58:18 GMT Server: Sun-Java-System-Web-Proxy-Server/4.0.4 Last-Modified: Tue, 26 Aug 2008 11:12:33 GMT Content-length: 5 Etag: "5-48b3e521" Accept-ranges: bytes Via: 1.0 agneyam:8000 Age: 115 Connection: close Content-Type: text/plain abcd --> No request to the back end observed. ------------------------------------------------------ Trying a third invalid cache-control directive, |echo "GET http://webproxy.india.sun.com:8000/tst.txt HTTP/1.0\r\nCache-Control: foobar=\" max-age=0 \" \r\n\r\n" | nc 0 8080 HTTP/1.1 200 OK Date: Tue, 26 Aug 2008 18:58:18 GMT Server: Sun-Java-System-Web-Proxy-Server/4.0.4 Last-Modified: Tue, 26 Aug 2008 11:12:33 GMT Content-length: 5 Etag: "5-48b3e521" Accept-ranges: bytes Via: 1.0 agneyam:8000 Age: 163 Connection: close Content-Type: text/plain abcd --> No request to the back end observed. ------------------------------------------------------ And no cache-eviction observed. Is my verification correct?, if it is, then it is not present in trunk any more (though may be present in the earlier versions |> 2.0.54 < trunk| ) thanks for the bug report. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
