[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
Wed Jan 25 16:59:50 PST 2012


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


johnjbarton <johnjbarton at johnjbarton.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |johnjbarton at johnjbarton.com




--- Comment #64 from johnjbarton <johnjbarton at johnjbarton.com>  2012-01-25 16:59:48 PST ---
I hit this problem in the following scenario:
  1. Using a web app on a server,
  2. Server updates itself,
  3. The next time I hit the server, the app is broken.
The update has new JavaScript. The JavaScript is almost all loaded dynamically (requireJS). Page loads but uses the cached JS: fail. Control+Shift+R fails. 

Now I happen to be a developer, but nothing about this scenario requires it.

Dynamic script loading is now the state of the art. Adding cache busting version markers is just a hack, plus its hard for small teams to implement. Manifests create a new class of bugs because they require developer action to maintain.

Three suggestions:

1) revalidate any resources that ever load in script tags. This is a much better approximation than "near load event" and much cheaper than building a manifest.

2) group resources by origin for cache handling. So force-refresh should apply to all resources from an origin, not just those loaded in a time window.

3) Decide this is a real problem. We need help here. There are only a few dynamic loaders now and a few browsers. Surely we can solve this problem.

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