[Webkit-unassigned] [Bug 32423] Incorrect cache behavior with dynamic scripts after page-refresh

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 9 18:42:05 PDT 2012


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





--- Comment #9 from Kyle Simpson <getify at gmail.com>  2012-05-09 18:41:09 PST ---
(In reply to comment #8)
Tony-

The previous test cases no longer work because Webkit (and thus Chrome) have changed since this bug was initial submitted. Those test cases were based on then-behavior that script elements with fake/unrecognized mime-types would be requested by the browser into the cache, but not executed. Webkit no longer fetches such scripts, so the test cases all fail to execute fully.

---------------------

I have created a new test case which I believe illustrates still the same problem, which is that the cache is not used during a page reload even though caching headers ostensibly suggests the item should be fetched from cache.

Steps to reproduce:

1. with a clean cache, go to:

http://test.getify.com/webkit-bug-32423/

2. wait for the "initial" 2 scripts to load/finish. then, click the button to re-request them, and wait for the "on-demand" script requests (same URLs!) to finish (should be nearly immediate, because they come from cache, as desired).

3. normal-click the refresh button. note that the scripts again load nearly immediately, from cache, as desired!

4. finally, normal-click the refresh the button a second time (third total page load), and notice that the scripts no longer come from cache, but get re-requested, and thus take several seconds each. Further subsequent loads continue to re-request the scripts from the server (not the cache) every time.

-- 
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