File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -442,7 +442,11 @@ def js_tag_with_cache_busting(js):
442
442
"collapse_navigation" : not is_release_build ,
443
443
"show_prev_next" : False ,
444
444
"switcher" : {
445
- "json_url" : "https://matplotlib.org/devdocs/_static/switcher.json" ,
445
+ # Add a unique query to the switcher.json url. This will be ignored by
446
+ # the server, but will be used as part of the key for caching by browsers
447
+ # so when we do a new minor release the switcher will update "promptly" on
448
+ # the stable and devdocs.
449
+ "json_url" : f"https://matplotlib.org/devdocs/_static/switcher.json?{ SHA } " ,
446
450
"version_match" : (
447
451
# The start version to show. This must be in switcher.json.
448
452
# We either go to 'stable' or to 'devdocs'
You can’t perform that action at this time.
0 commit comments