dojo - Google Chrome web page refresh broken -


google chrome version 48.0.2564.97 m

many intranet web apps fail load when hitting "reload" button (or hitting f5) while in app.

the page loads fine first time, on page , refresh, page fails load.

  • this issue started chrome v48
  • if "hard refresh" (shift f5), page reloads fine
  • if server not send 304 javascript pages , forced send 200 (no cache control), page loads fine.
  • all works fine in other browsers
  • apps in question use dojo javascript framework (an older version of it)

since initial load works fine, seems have way chrome handles client cached javascript files.

any ideas?

you've hit bug in chrome - https://code.google.com/p/chromium/issues/detail?id=570622

basically, when dojo xmlhttprequest load module , server responds 304, chrome passing empty response body rather pulling original response cache. unsurprisingly, dojo sees error.

as noted, forcing server full 200 response fixes problem, i'm doing bit of apache httpd config strip out request header triggers 304 javascript files:

<locationmatch "^/portal/static/.*\.js$">     requestheader unset if-modified-since </locationmatch> 

the chromium issue has patch in it, fixed in next chrome release.


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -