Skip to content

Cache-bust the WPT history tooltip script with a content hash - #25

Merged
nicoburns merged 1 commit into
mainfrom
devin/1789917960-tooltip-cache-bust
Sep 20, 2026
Merged

nicoburns merged 1 commit into
mainfrom
devin/1789917960-tooltip-cache-bust

Conversation

@nicoburns

Copy link
Copy Markdown
Member

Summary

/static/* is served without Cache-Control, so browsers heuristically cache wpt-history-tooltip.js and kept the pre-#24 copy (which reads the removed latest key) until a hard refresh, breaking hover tooltips.

Same fix as index.css: the script tag becomes /static/wpt-history-tooltip.js?<fxhash of contents>, with the hash computed once from include_str! in a LazyLock, so the URL changes whenever the script does.

Link to Devin session: https://dioxus.staging.devinenterprise.com/sessions/6a70291c2fd54da1a02968bb80f8622b
Open in Devin Desktop: https://dioxus.staging.devinenterprise.com/desktop/session/6a70291c2fd54da1a02968bb80f8622b?variant=devin-insiders
Requested by: @nicoburns

@staging-devin-ai-integration

Copy link
Copy Markdown

I'll fix CI failures and address comments from users with write access that start with 'DevinAI' or '@devin'.

  • Disable automatic comment, CI, and merge conflict monitoring

@nicoburns
nicoburns merged commit 4520500 into main Sep 20, 2026
2 checks passed
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