Skip to content

fix(website): bump styles.css cache-bust to force fresh fetch#88

Merged
SamPlvs merged 1 commit into
mainfrom
claude/website-bust-css-cache
May 28, 2026
Merged

fix(website): bump styles.css cache-bust to force fresh fetch#88
SamPlvs merged 1 commit into
mainfrom
claude/website-bust-css-cache

Conversation

@SamPlvs
Copy link
Copy Markdown
Owner

@SamPlvs SamPlvs commented May 28, 2026

Summary

PR #87 removed the opacity fade on the secondary byline. The CSS file on origin is correct — verified via curl https://zerooperators.com/styles.css:

```
.author-secondary {
display: block;
margin-top: 2px;
}
```

Problem: the HTML loads styles.css?v=6, the same URL it had before the PR #87 deploy. Browsers that visited the site before PR #87 went live cached styles.css?v=6 and continue to serve the old CSS (with opacity: 0.55) until the cache expires or the URL changes.

This PR bumps the cache-bust string v=6v=7 so all clients fetch fresh CSS on next page load, picking up the opacity fix immediately.

Test plan

  • Local Astro dev preview shows <link rel="stylesheet" href="styles.css?v=7"> (verified via DOM query)
  • Origin CSS at https://zerooperators.com/styles.css already has the opacity removed (verified via cache-busted curl)
  • After merge + deploy: hard-refresh zerooperators.com should now show "WITH CALLUM ADAMSON" at full intensity matching the primary byline

Note on the underlying pattern

Whenever a .css file changes substantively, the ?v= query string in website/src/pages/index.html:11 should be bumped at the same time. Otherwise, returning visitors will keep seeing the old version. Worth a small mental note for future CSS PRs.

🤖 Generated with Claude Code

The opacity fix from PR #87 is live on origin but browsers cached
styles.css?v=6 before the deploy. Since the URL didn't change, cached
clients keep serving the old CSS. Bumping the version string forces a
fresh fetch of the current styles.css for everyone.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying zero-operators with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9869da4
Status: ✅  Deploy successful!
Preview URL: https://4e03d2d3.zero-operators.pages.dev
Branch Preview URL: https://claude-website-bust-css-cach.zero-operators.pages.dev

View logs

@SamPlvs SamPlvs merged commit 03992d5 into main May 28, 2026
3 checks passed
@SamPlvs SamPlvs deleted the claude/website-bust-css-cache branch May 28, 2026 11:32
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