We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d78bc01 + 77384b3 commit 3b2d6d3Copy full SHA for 3b2d6d3
1 file changed
doc/conf.py
@@ -397,7 +397,11 @@ def js_tag_with_cache_busting(js):
397
"collapse_navigation": not is_release_build,
398
"show_prev_next": False,
399
"switcher": {
400
- "json_url": "https://matplotlib.org/devdocs/_static/switcher.json",
+ # 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}",
405
"version_match": (
406
# The start version to show. This must be in switcher.json.
407
# We either go to 'stable' or to 'devdocs'
0 commit comments