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 @@ -397,7 +397,11 @@ def js_tag_with_cache_busting(js):
397
397
"collapse_navigation" : not is_release_build ,
398
398
"show_prev_next" : False ,
399
399
"switcher" : {
400
- "json_url" : "https://matplotlib.org/devdocs/_static/switcher.json" ,
400
+ # Add a unique query to the switcher.json url. This will be ignored by
401
+ # the server, but will be used as part of the key for caching by browsers
402
+ # so when we do a new minor release the switcher will update "promptly" on
403
+ # the stable and devdocs.
404
+ "json_url" : f"https://matplotlib.org/devdocs/_static/switcher.json?{ SHA } " ,
401
405
"version_match" : (
402
406
# The start version to show. This must be in switcher.json.
403
407
# We either go to 'stable' or to 'devdocs'
You can’t perform that action at this time.
0 commit comments