Skip to content

docs: version the shared stylesheet and top bar URLs - #181

Merged
imran-siddique merged 1 commit into
mainfrom
docs/versioned-shared-assets
Sep 14, 2026
Merged

imran-siddique merged 1 commit into
mainfrom
docs/versioned-shared-assets

Conversation

@imran-siddique

Copy link
Copy Markdown
Member

This site loads two files from agentrust-io.com: design-system.css in extra_css and supernav.js, the shared top bar, in extra_javascript. Both URLs had no query string, and agentrust-io.com serves them with Cache-Control: max-age=14400. After agentrust-io.github.io #72 cut the top bar from 14 links to 9 on 2026-09-14, a browser that had visited any AgenTrust site in the previous four hours kept showing the old bar, including AGT, until its copy expired.

Both URLs now end in ?v=21, the CSS_VERSION in agentrust-io.github.io tools/site_header.py that every hub page already uses for the stylesheet. A comment above each line says to bump the number there and here together. A companion hub PR versions supernav.js on its own pages the same way, and extends the scheduled availability check to report any docs site whose URLs lag the hub.

Checked

  • mkdocs.yml still parses, with extra_css and extra_javascript each holding the one versioned URL.
  • https://agentrust-io.com/design-system.css?v=21 and https://agentrust-io.com/supernav.js?v=21 both return 200; GitHub Pages ignores the query string, so the file served is unchanged.

Generated with Claude Code

https://claude.ai/code/session_013aK3gVWzNdcM3hZ2o2awK2

agentrust-io.com serves design-system.css and supernav.js with
Cache-Control max-age=14400, and this site loaded both without a query
string, so browsers kept an old top bar for up to four hours after the
hub changed it. Both URLs now carry ?v=21, the CSS_VERSION the hub pages
use, with a comment saying where that number lives.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013aK3gVWzNdcM3hZ2o2awK2
@imran-siddique
imran-siddique merged commit fc28855 into main Sep 14, 2026
13 checks passed
@imran-siddique
imran-siddique deleted the docs/versioned-shared-assets branch September 14, 2026 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant