fix: cache-bust stylesheet behind cloudflare #4

Merged
marti merged 1 commit from fix/stylesheet-cache-bust into main 2026-10-17 13:46:17 +02:00
Owner

The subtitle links on cumsek.com still show up in default blue with an underline, even though #3 is merged.

The cause is caching. Cloudflare serves style.css with cache-control: max-age=14400 and is still serving the copy from #1 (cf-cache-status: HIT), which has no link rules. The HTML isn't cached, so visitors get the new markup with the old stylesheet. I checked that the origin already serves the current style.css.

This changes the stylesheet link to style.css?v=2. The new URL isn't in Cloudflare's cache or the browser's, so both fetch the current file. Bump the number whenever style.css changes.

Checked with a headless Zen screenshot of this branch: the names render as plain grey subtitle text.

🤖 Generated with Claude Code

The subtitle links on cumsek.com still show up in default blue with an underline, even though #3 is merged. The cause is caching. Cloudflare serves `style.css` with `cache-control: max-age=14400` and is still serving the copy from #1 (`cf-cache-status: HIT`), which has no link rules. The HTML isn't cached, so visitors get the new markup with the old stylesheet. I checked that the origin already serves the current `style.css`. This changes the stylesheet link to `style.css?v=2`. The new URL isn't in Cloudflare's cache or the browser's, so both fetch the current file. Bump the number whenever `style.css` changes. Checked with a headless Zen screenshot of this branch: the names render as plain grey subtitle text. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Cloudflare caches style.css for 4 hours, so visitors got the new HTML
with the original stylesheet and saw default blue links.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
marti merged commit 070d68229a into main 2026-10-17 13:46:17 +02:00
marti deleted branch fix/stylesheet-cache-bust 2026-10-17 13:46:20 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
cumsek/web!4
No description provided.