[Opensymphony-oscache] Re: Got "HTTP/1.1 304 Not Modified" When Press Ctrl + F5

Deep Blue <[email protected]> Wed, 06 Dec 2006 00:31:20 CST
Newsgroups gmane.comp.java.open-symphony.os-cache
Message-ID <9831942.1165386932887.JavaMail.os-j2ee@opensymphony01.managed.contegix.com>
Hi,

Here is the quote from HTTP protocol (ftp://ftp.isi.edu/in-notes/rfc2616.txt) :

"14.9.4 Cache Revalidation and Reload Controls

   Sometimes a user agent might want or need to insist that a cache
   revalidate its cache entry with the origin server (and not just with
   the next cache along the path to the origin server), or to reload its
   cache entry from the origin server. End-to-end revalidation might be
   necessary if either the cache or the origin server has overestimated
   the expiration time of the cached response. End-to-end reload may be
   necessary if the cache entry has become corrupted for some reason.

   End-to-end revalidation may be requested either when the client does
   not have its own local cached copy, in which case we call it
   "unspecified end-to-end revalidation", or when the client does have a
   local cached copy, in which case we call it "specific end-to-end
   revalidation."

   The client can specify these three kinds of action using Cache-
   Control request directives:

[b]   End-to-end reload
      The request includes a "no-cache" cache-control directive or, for
      compatibility with HTTP/1.0 clients, "Pragma: no-cache". Field
      names MUST NOT be included with the no-cache directive in a
      request. The server MUST NOT use a cached copy when responding to
      such a request.[/b]"

I think it is ok if the oscache returns the cached copy to the browser but it shouldn't return HTTP 304 Not Modified.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=52057&messageID=105449#105449