You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
today a change in a profile on the server side is not visible in brouter-web bevore a cache expiration (can be very long) or a manual "cache-clear" in the browser.
As this behaviour is some times not comfortable, I wanted to discuss a "cache deactivation".
A local test with a minor change in Utils.js was ok using windows-edge ( not tested with other browsers!)
BR.Util = {
get: function (url, cb) {
var xhr = new XMLHttpRequest();
xhr.open('GET', url, true);
console.log("setRequestHeader NO CAHE utils.js ");
xhr.setRequestHeader("Cache-Control", "no-cache, no-store, must-revalidate");
xhr.onload = function () {
regards
EssBee
The text was updated successfully, but these errors were encountered:
Thanks, I was going to suggest to add this on the server side, as there are other resources we might want to update without a release (e.g. config.js, don't have a definitive list yet), that are requested in different ways, some outside our control.
I think it would be better to remove no-store, as it completely disables caching. Using only no-cache, and maybe must-revalidate as a fallback, should be sufficient, as they always check for a newer version with a small HEAD request first and only use the cache if there isn't one.
Hello,
today a change in a profile on the server side is not visible in brouter-web bevore a cache expiration (can be very long) or a manual "cache-clear" in the browser.
As this behaviour is some times not comfortable, I wanted to discuss a "cache deactivation".
A local test with a minor change in Utils.js was ok using windows-edge ( not tested with other browsers!)
BR.Util = {
get: function (url, cb) {
var xhr = new XMLHttpRequest();
xhr.open('GET', url, true);
console.log("setRequestHeader NO CAHE utils.js ");
xhr.setRequestHeader("Cache-Control", "no-cache, no-store, must-revalidate");
xhr.onload = function () {
regards
EssBee
The text was updated successfully, but these errors were encountered: