Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [orion-dev] 0.4m1 -> integration build and back

Thanks for narrowing this down and finding the webkit bug pointer John. We had come to a similar conclusion about Ctrl+Shift+R ignoring dynamic content in the past, and found that cache control headers fixed the problem for us. I wasn't sure if this was a bug in Chrome, or just a case where Chrome decides that cache control headers trump user reload requests (I know you asked for a refresh, but we know better so we'll keep taking it from cache). We avoided this problem by setting "Cache-Control: no-cache" on just about all dynamic content coming from the Orion server. In this particular case the problem is that we are caching plugin metadata in local storage, and we never even do an xhr request to the server. Presumably Ctrl+Shift+R does not clear localStorage so it doesn't help here. In some of our other localStorage we use our own internal timestamp to expire our local cache and refetch from server periodically. This internal cache expiry was just plain missing for plugin metadata. Simon tracked this down yesterday but we neglected to update any bug. I have updated this bug:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=366739

John




John J Barton <johnjbarton@xxxxxxxxxxxxxxx>
Sent by: orion-dev-bounces@xxxxxxxxxxx

01/25/2012 03:52 PM

Please respond to
Orion developer discussions <orion-dev@xxxxxxxxxxx>

To
Orion developer discussions <orion-dev@xxxxxxxxxxx>
cc
Subject
Re: [orion-dev] 0.4m1 -> integration build and back





Ok I was able to reproduce this problem by switching between two versions of Orion. I was able to verify that Control+Shift+R does *not* solve the problem, but Wrench > Tools > Clear browser cache since beginning of time does solve the problem.

Then I hunted down our Chrome cache expert. The problem has two parts. One is that Control+Shift+R does *not* force reload XHRs and two that XHRs are not revalidated.

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

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

The only workarounds today seem to be :
  1) cache busting URLs: post pend a version number URLs so they mismatch when the version changes.
  2) make the cache time magically correct so we flush based on time.

jjb

_______________________________________________
orion-dev mailing list
orion-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/orion-dev


Back to the top