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 _______________________________________________ dev-tech-network mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-network
