[Opensymphony-oscache] Re: Got "HTTP/1.1 304 Not Modified" When Press Ctrl + F5
Deep Blue <[email protected]> Tue, 05 Dec 2006 01:45:40 CST
| Newsgroups | gmane.comp.java.open-symphony.os-cache |
|---|---|
| Message-ID | <4550239.1165304936445.JavaMail.os-j2ee@opensymphony01.managed.contegix.com> |
------=_Part_13211_19723257.1165304936440 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, Ctrl+F5 is hard refresh - browser will try to get new copies of the all the images, html, etc.. of the page. So, I think oscache should return cache copy of the image, instead of returning HTTP 304. If I do hard-refresh, image will remain broken link in firefox until the cache is expired. I attached the HTTP header text of normal refresh vs hard refresh in both firefox and IE. It can be easily see that the hard refresh will always sent "Cache-Control: no-cache". I think OsCache shouldn't return HTTP 304 when "Cache-Control: no-cache" is in the request header. Please correct me if I'm wrong. Thanks for your lightspeed reply!! Sorry for double posting. --------------------------------------------------------------------- Posted via Jive Forums http://forums.opensymphony.com/thread.jspa?threadID=52057&messageID=105249#105249 ------=_Part_13211_19723257.1165304936440 Content-Type: text/plain; name="Firefox - normal refresh.txt"; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Firefox - normal refresh.txt" http://localhost:8080/onthepitch.jsp GET /onthepitch.jsp HTTP/1.1 Host: localhost:8080 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.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,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Cookie: JSESSIONID=BE99F90C22BD6E875600A7024125B9CD Cache-Control: max-age=0 HTTP/1.x 200 OK Server: Apache-Coyote/1.1 Content-Type: text/html;charset=ISO-8859-1 Transfer-Encoding: chunked Date: Tue, 05 Dec 2006 07:39:14 GMT ---------------------------------------------------------- http://localhost:8080/getThumbnail.do?id=1 GET /getThumbnail.do?id=1 HTTP/1.1 Host: localhost:8080 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0 Accept: image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://localhost:8080/onthepitch.jsp Cookie: JSESSIONID=BE99F90C22BD6E875600A7024125B9CD Cache-Control: max-age=0 HTTP/1.x 304 Not Modified Server: Apache-Coyote/1.1 Date: Tue, 05 Dec 2006 07:39:18 GMT ---------------------------------------------------------- http://localhost:8080/getThumbnail.do?id=6 GET /getThumbnail.do?id=6 HTTP/1.1 Host: localhost:8080 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0 Accept: image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://localhost:8080/onthepitch.jsp Cookie: JSESSIONID=BE99F90C22BD6E875600A7024125B9CD Cache-Control: max-age=0 HTTP/1.x 304 Not Modified Server: Apache-Coyote/1.1 Date: Tue, 05 Dec 2006 07:39:18 GMT ---------------------------------------------------------- ------=_Part_13211_19723257.1165304936440 Content-Type: text/plain; name="Firefox - hard refresh.txt"; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Firefox - hard refresh.txt" http://localhost:8080/onthepitch.jsp GET /onthepitch.jsp HTTP/1.1 Host: localhost:8080 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.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,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Cookie: JSESSIONID=BE99F90C22BD6E875600A7024125B9CD Pragma: no-cache Cache-Control: no-cache HTTP/1.x 200 OK Server: Apache-Coyote/1.1 Content-Type: text/html;charset=ISO-8859-1 Transfer-Encoding: chunked Date: Tue, 05 Dec 2006 07:39:54 GMT ---------------------------------------------------------- http://localhost:8080/getThumbnail.do?id=1 GET /getThumbnail.do?id=1 HTTP/1.1 Host: localhost:8080 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0 Accept: image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://localhost:8080/onthepitch.jsp Cookie: JSESSIONID=BE99F90C22BD6E875600A7024125B9CD Pragma: no-cache Cache-Control: no-cache HTTP/1.x 304 Not Modified Server: Apache-Coyote/1.1 Date: Tue, 05 Dec 2006 07:39:55 GMT ---------------------------------------------------------- http://localhost:8080/getThumbnail.do?id=6 GET /getThumbnail.do?id=6 HTTP/1.1 Host: localhost:8080 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0 Accept: image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://localhost:8080/onthepitch.jsp Cookie: JSESSIONID=BE99F90C22BD6E875600A7024125B9CD Pragma: no-cache Cache-Control: no-cache HTTP/1.x 304 Not Modified Server: Apache-Coyote/1.1 Date: Tue, 05 Dec 2006 07:39:55 GMT ---------------------------------------------------------- ------=_Part_13211_19723257.1165304936440 Content-Type: text/plain; name="IE - normal refresh.txt"; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="IE - normal refresh.txt" GET /offthepitch.jsp HTTP/1.1 Accept: */* Accept-Language: en-us Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) Host: localhost:8080 Connection: Keep-Alive Cookie: org.springframework.web.servlet.theme.CookieThemeResolver.THEME=blue; JSESSIONID=0F75323C605DC133AF59DC568D212D45 HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/html;charset=ISO-8859-1 Transfer-Encoding: chunked Date: Tue, 05 Dec 2006 07:26:16 GMT GET /getThumbnail.do?id=2 HTTP/1.1 Accept: */* Referer: http://localhost:8080/offthepitch.jsp Accept-Language: en-us Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) Host: localhost:8080 Connection: Keep-Alive Cookie: org.springframework.web.servlet.theme.CookieThemeResolver.THEME=blue; JSESSIONID=0F75323C605DC133AF59DC568D212D45 HTTP/1.1 304 Not Modified Server: Apache-Coyote/1.1 Date: Tue, 05 Dec 2006 07:26:16 GMT GET /getThumbnail.do?id=3 HTTP/1.1 Accept: */* Referer: http://localhost:8080/offthepitch.jsp Accept-Language: en-us Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) Host: localhost:8080 Connection: Keep-Alive Cookie: org.springframework.web.servlet.theme.CookieThemeResolver.THEME=blue; JSESSIONID=0F75323C605DC133AF59DC568D212D45 HTTP/1.1 304 Not Modified Server: Apache-Coyote/1.1 Date: Tue, 05 Dec 2006 07:26:17 GMT GET /getThumbnail.do?id=4 HTTP/1.1 Accept: */* Referer: http://localhost:8080/offthepitch.jsp Accept-Language: en-us Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) Host: localhost:8080 Connection: Keep-Alive Cookie: org.springframework.web.servlet.theme.CookieThemeResolver.THEME=blue; JSESSIONID=0F75323C605DC133AF59DC568D212D45 HTTP/1.1 304 Not Modified Server: Apache-Coyote/1.1 Date: Tue, 05 Dec 2006 07:26:17 GMT ------=_Part_13211_19723257.1165304936440 Content-Type: text/plain; name="IE - hard refresh.txt"; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="IE - hard refresh.txt" GET /offthepitch.jsp HTTP/1.1 Accept: */* Accept-Language: en-us Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) Host: localhost:8080 Connection: Keep-Alive Cache-Control: no-cache Cookie: org.springframework.web.servlet.theme.CookieThemeResolver.THEME=blue; JSESSIONID=0F75323C605DC133AF59DC568D212D45 HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/html;charset=ISO-8859-1 Transfer-Encoding: chunked Date: Tue, 05 Dec 2006 07:26:46 GMT GET /getThumbnail.do?id=3 HTTP/1.1 Accept: */* Referer: http://localhost:8080/offthepitch.jsp Accept-Language: en-us Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) Host: localhost:8080 Connection: Keep-Alive Cache-Control: no-cache Cookie: org.springframework.web.servlet.theme.CookieThemeResolver.THEME=blue; JSESSIONID=0F75323C605DC133AF59DC568D212D45 HTTP/1.1 304 Not Modified Server: Apache-Coyote/1.1 Date: Tue, 05 Dec 2006 07:26:48 GMT GET /getThumbnail.do?id=2 HTTP/1.1 Accept: */* Referer: http://localhost:8080/offthepitch.jsp Accept-Language: en-us Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) Host: localhost:8080 Connection: Keep-Alive Cache-Control: no-cache Cookie: org.springframework.web.servlet.theme.CookieThemeResolver.THEME=blue; JSESSIONID=0F75323C605DC133AF59DC568D212D45 HTTP/1.1 304 Not Modified Server: Apache-Coyote/1.1 Date: Tue, 05 Dec 2006 07:26:48 GMT GET /getThumbnail.do?id=4 HTTP/1.1 Accept: */* Referer: http://localhost:8080/offthepitch.jsp Accept-Language: en-us Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) Host: localhost:8080 Connection: Keep-Alive Cache-Control: no-cache Cookie: org.springframework.web.servlet.theme.CookieThemeResolver.THEME=blue; JSESSIONID=0F75323C605DC133AF59DC568D212D45 HTTP/1.1 304 Not Modified Server: Apache-Coyote/1.1 Date: Tue, 05 Dec 2006 07:26:48 GMT ------=_Part_13211_19723257.1165304936440 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] ------=_Part_13211_19723257.1165304936440--