https://issues.apache.org/bugzilla/show_bug.cgi?id=45341
--- Comment #2 from Nathan Hamblen <[EMAIL PROTECTED]> 2008-07-13 10:34:26 PST --- I'm also experiencing this bug, using Apache/2.2.8 with mod_cache and mod_disk_cache over an AJP reverse proxy of an Apache Wicket application; Wicket does not set Expire headers when responding with 304 (which works fine without the cache on). Here is my TCP trace: ------- GET /resources/com.typeturner.Typeturner/image?name=kitchen1 HTTP/1.1 User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_4; en-us) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.20.1 Cache-Control: max-age=0 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us Accept-Encoding: gzip, deflate Cookie: Typeturner_USER=nathan; Typeturner_AUTH=xxxx; JSESSIONID=xxxx Connection: keep-alive Host: technically.us HTTP/1.1 304 NOT_MODIFIED Date: Sun, 13 Jul 2008 13:23:28 GMT Server: Server: Jetty(6.0.x) Connection: Keep-Alive Keep-Alive: timeout=15, max=100 Vary: Accept-Encoding ------- However, this failing behavior only seems to occur when a query string is present in the URL. Otherwise, mod_cache seems to perform an unconditional GET on the proxied server, and pass along that response to the client: ------- GET /resources/org.apache.wicket.Application/eat-photo HTTP/1.1 User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_4; en-us) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.20.1 Cache-Control: max-age=0 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us Accept-Encoding: gzip, deflate Cookie: Typeturner_USER=nathan; Typeturner_AUTH=xxxx; JSESSIONID=xxxx Connection: keep-alive Host: technically.us HTTP/1.1 200 OK Date: Sun, 13 Jul 2008 14:44:56 GMT Server: Server: Jetty(6.0.x) Expires: Sun, 20 Jul 2008 14:44:14 GMT Cache-Control: max-age=604800 Vary: Accept-Encoding Content-Encoding: gzip Last-Modified: Wed, 09 Jul 2008 12:22:57 GMT Content-Length: 40831 Keep-Alive: timeout=15, max=100 Connection: Keep-Alive Content-Type: image/jpeg [....] ------- To work around the problem, I've patched Wicket to set an Expires header when responding with 304 and I'll offer that to the project as an improvement, but I do think mod_cache is behaving incorrectly. -- 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]
