Re: Cache-Control: no-store
Christian Biesinger <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.netlib |
|---|---|
| Message-ID | <CACpOFMs-eqoVGrPVQ7Vqcwo0PoC6x=nnJZoLo9Y56aU+6HVuQQ@mail.gmail.com> |
On Thu, Dec 1, 2011 at 4:36 AM, Bjarne <[email protected]> wrote: > In "netwerk/test/unit/test_cacheflags.js" there > is a test (second-last) for the combination > "no-store" and nsIRequest.LOAD_FROM_CACHE. It > expects to load the entry from cache. Can this > be correct? (nsIRequest.LOAD_FROM_CACHE is the > flag used by history, according to docs.) Sigh. The docs are wrong. History uses VALIDATE_NEVER, which makes a lot more sense. LOAD_FROM_CACHE is used for LOAD_RELOAD_CHARSET_CHANGE and similar cases, for which case it seems right to reuse no-store responses. See the code here: http://mxr.mozilla.org/mozilla-central/source/docshell/base/nsDocShell.cpp#9026 -christian