Title: Append a hash ?digest to CSS files for cache-busting by hugovk · Pull Request #1054 · python/devguide · GitHub
Open Graph Title: Append a hash ?digest to CSS files for cache-busting by hugovk · Pull Request #1054 · python/devguide
X Title: Append a hash ?digest to CSS files for cache-busting by hugovk · Pull Request #1054 · python/devguide
Description: Similar to python/python-docs-theme#108. Fix the problems we saw at #1034 (comment) when the CSS file changed but browsers kept the old version cached for 24 hours. Append a ?digest=hash to the end of the pydoctheme.css, computed from the file contents, so when a new CSS file is deployed, the old one is no longer used from the browser cache. For example: This is based on how @pradyunsg's Furo theme does it: https://github.com/pradyunsg/furo/blob/193643fdb6787501195555244f4a9e953ef544bb/src/furo/__init__.py#L149-L161 Thanks @pradyunsg! Demo View the source of pages at https://cpython-devguide--1054.org.readthedocs.build/. Furo's css already has a digest, this PR adds it to devguide_overrides.css. Check the colours load in the EOL chart at https://cpython-devguide--1054.org.readthedocs.build/versions/
Open Graph Description: Similar to python/python-docs-theme#108. Fix the problems we saw at #1034 (comment) when the CSS file changed but browsers kept the old version cached for 24 hours. Append a ?digest=hash to the end...
X Description: Similar to python/python-docs-theme#108. Fix the problems we saw at #1034 (comment) when the CSS file changed but browsers kept the old version cached for 24 hours. Append a ?digest=hash to the end...
Opengraph URL: https://github.com/python/devguide/pull/1054
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:1a48f548-5373-a2e2-5f03-13f25d8c88ac |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DED6:C8A64:BE6E67:106C08E:696A8BCE |
| html-safe-nonce | 6573aa38c7a3b4f21af8242fc00fc89a6ade0a8f74aadaa2a84ee02087d6f7a9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERUQ2OkM4QTY0OkJFNkU2NzoxMDZDMDhFOjY5NkE4QkNFIiwidmlzaXRvcl9pZCI6IjIyMDQ5MzA4MjU5MjI0NDgzMzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c53f918309efdd100abfb94d0fb5fc2b5c8bb3cacaeeeb07de93b59ea8721735 |
| hovercard-subject-tag | pull_request:1244296386 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/devguide/pull/1054/files |
| twitter:image | https://avatars.githubusercontent.com/u/1324225?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1324225?s=400&v=4 |
| og:image:alt | Similar to python/python-docs-theme#108. Fix the problems we saw at #1034 (comment) when the CSS file changed but browsers kept the old version cached for 24 hours. Append a ?digest=hash to the end... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | d2aa6dedd7d97fa651b17c40401f2605f309df5ca5fb659bf0554cf34f1de825 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/devguide git https://github.com/python/devguide.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 63972479 |
| octolytics-dimension-repository_nwo | python/devguide |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 63972479 |
| octolytics-dimension-repository_network_root_nwo | python/devguide |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c1dbca8981c5e3d6a69bce2f1d289e732b86241d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width