Commit b9dcc9ca authored by Romain Casati's avatar Romain Casati
Browse files

Use cache busting in Jupyter internal ajax calls.

parent 8d73be4f
Pipeline #400589 passed with stages
in 3 minutes and 6 seconds
...@@ -793,6 +793,13 @@ define([ ...@@ -793,6 +793,13 @@ define([
url = settings.url; url = settings.url;
delete settings.url; delete settings.url;
} }
// [Basthon]
// force caching and use our cache busting strategy
settings.cache = true;
const data = (settings.data || {});
data['v'] = window.BASTHON_CACHE_BUSTING_TIMESTAMP;
settings.data = data;
settings = _add_auth_header(settings); settings = _add_auth_header(settings);
return $.ajax(url, settings); return $.ajax(url, settings);
}; };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment