[Webkit-unassigned] [Bug 30862] Dynamically inserted subresources aren't revalidated even when the containing document is reloaded

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 30 13:52:34 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=30862


Alexey Proskuryakov <ap at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Impossible to clear cached  |Dynamically inserted
                   |javascript without closing  |subresources aren't
                   |and restarting webkit       |revalidated even when the
                   |(dynamically inserted       |containing document is
                   |script tags)                |reloaded
                 CC|                            |beidson at apple.com,
                   |                            |koivisto at iki.fi




--- Comment #4 from Alexey Proskuryakov <ap at webkit.org>  2009-10-30 13:52:33 PDT ---
I said that this should work, but turns out that Firefox has the same behavior
in this respect. The attached test case doesn't fail there for a different
reason, but if you move test execution into an onload handler, then
subresources won't be revalidated. It's just timing of when requests are
started that makes the behavior look different.

So, both Safari and Firefox forget that the document was a reload once load
completes, and any resources that are added dynamically later aren't
revalidated (unless they have appropriate Cache-Control headers, of course).

A workaround is to use Empty Caches command from Safari menu. I've changed bug
summary to reflect that there is a workaround that doesn't involve restarting
Safari.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list