fix(web-ui): CSS must-revalidate so deploys aren't masked by browser cache #22
No reviewers
Labels
No labels
bug
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: WildDragonLLC/dragonflight#22
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/css-cache-revalidate"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Nginx was serving CSS with
expires 1y; Cache-Control: public, immutable. Combined with version-less<link href="styles-rest.css">inindex.html, every browser permanently pinned whatever stylesheet it cached first — so the schedule calendar rendered as a vertical stack of weekday names because the cached CSS pre-dated the.cal-*rules.Move CSS into the same bucket as JS:
must-revalidatevia ETag. Fonts, icons, and raster assets stay in the 1y immutable bucket.Test plan
curl -sI .../styles-rest.cssshowsCache-Control: no-cache, must-revalidatecurl -sI .../img/dragon-logo.pngstill showsimmutable🤖 Generated with Claude Code