Latest version of Chrome for Mac (59.0.3071.115) javascript: window.location.reload(true) does NOT reload from server and just reloads from cache. Prior to updating Chrome, the last version of ’59’ I was using (don’t have the complete version number as I was not expecting this to break…) this worked as documented. Need function to work as documented. Functionality should be the same as manual: hold down <control> click 'Refresh'
--
--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss
---
You received this message because you are subscribed to the Google Groups "Chromium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discuss+unsubscribe@chromium.org.
☆PhistucK
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discu...@chromium.org.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discuss+unsubscribe@chromium.org.
☆PhistucK
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discu...@chromium.org.
Jim: Here's the screenshot you requested. The spec as I understand it is that 'location.reload(true)' is to bypass the cache and retrieve files from the server, just as <control><Refresh> does manually. Chrome releases prior to '59' worked this way, and the current version of Chrome on iPhone works as well.
Dave
On Mon, Jul 31, 2017 at 7:14 PM, jlm <jlmsp...@gmail.com> wrote:
John: (sorry, been calling you ‘jim’ …) Based on my testing, in Chrome, the ‘active’ (highest level document) ReloadTest.html document is ALWAYS reloaded from the server no matter how it has been refreshed.
As for the contained documents (.js files), the behavior of chrome for desktop was changed around release ’59.’ reload(true) used to force reload from server of all contained documents, and still does in other chrome variants (e.g., iPhone). Also, I cannot find another browser that does not. Understand that the new behavior provides an optimization of reload(true), but for ‘older’ servers, the default behavior when those cache headers are not provided should be to reload the file from the server. This would be consistent with: Chrome’s past behavior, behavior or every other browser, and consistent with the desired behavior of reload(true).
Are you an employee of Google? My first time using this forum…
Dave- The spec, https://html.spec.whatwg.org/multipage/history.html#dom-location-reload , is not specific and only references the "active document" without including referenced objects as I read it. So the html document is reloaded but both the jquery and the ReloadTest.jss are served from cache in the current Chrome.Now it turns out that current Firefox 54.0 behaves as you expect. Chrome clearly does not. I'd consider this to be a big "So what" and I'm not trying to be a Chrome defender.The issue almost certainly lies with the fact that the ReloadTest.jss file is being delivered without a cache-control (http/1.1) or pragma (http/1.0) or expires header. As such, cache management is left to the discretion of the User Agent (browser). And over the past 15+ years the behavior of different browsers has varied widely.I gather your server is using tomcat6 or tomcat7 or some older version of JBOSS. All of these are notoriously problematic when delivering static content without some careful configuration.I'm sure you will be able to achieve your desired result with the addition of headers to manage cache behavior.
On Mon, Jul 31, 2017 at 9:56 PM David Spicer <harle...@gmail.com> wrote:
Jim: Here's the screenshot you requested. The spec as I understand it is that 'location.reload(true)' is to bypass the cache and retrieve files from the server, just as <control><Refresh> does manually. Chrome releases prior to '59' worked this way, and the current version of Chrome on iPhone works as well.
Dave
On Mon, Jul 31, 2017 at 7:14 PM, jlm <jlmsp...@gmail.com> wrote:
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discuss+unsubscribe@chromium.org.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discuss+unsubscribe@chromium.org.
☆PhistucK
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discu...@chromium.org.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discuss+unsubscribe@chromium.org.
☆PhistucK
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discu...@chromium.org.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discuss+unsubscribe@chromium.org.
I don't quite get
it, wasn't the idea of the discussion in https://groups.google.com/a/chromium.org/forum/#!topic/loading-dev/gD-MPRcfwVA/discussion
that you should stick to two types of reloads: One that use the cache and one that
don't? So that F5 reloads like
location.reload() and that Ctrl-F5 reloads like location.reload(true)? Because
the behavior I see now is that Ctrl-F5 disregards the cache, while reload(true) does not.
My specific use case taking me here is an authenticated rich web application where I have to handle expired sessions. I thought I could use location.reload(true) to force a reload that would redirect to the login page, but since it does not work in chrome I have to implement some other hack to force the browser to actually reload the resource. I can't even redirect to the login page myself since it's a general SSO-solution in front of the servers that provides an authentication form on unauthenticated requests. Hack works, but I think it's sad that I can not rely on simply location.reload(true).
location.reload(bool) might not be officially defined, but it seems to be quite well defined de facto, except from your recent change.
☆PhistucK
☆PhistucK
☆PhistucK
☆PhistucK
☆PhistucK
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discu...@chromium.org.
<b
You received this message because you are subscribed to a topic in the Google Groups "Chromium-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/a/chromium.org/d/topic/chromium-discuss/T3uNqzSiM0Y/unsubscribe.
To unsubscribe from this group and all its topics, send an email to chromium-discu...@chromium.org.