Skip to content

fix(blog): refresh cached article pages after R2 updates - #50

Merged
Shivam1337 merged 1 commit into
mainfrom
codex/blog-refresh-cache
Sep 29, 2026
Merged

Shivam1337 merged 1 commit into
mainfrom
codex/blog-refresh-cache

Conversation

@Shivam1337

Copy link
Copy Markdown
Collaborator

An n8n article refresh updates the R2 HTML, but Vercel continues serving the previously prerendered /blog/[slug] page. The live pilot changed the R2 object while the public page remained a Vercel cache hit with the old paragraph.

Regenerate article pages every 15 minutes and give their CDN responses the same 15-minute cache period with a one-minute stale window. This keeps static delivery while allowing published article edits to reach readers after revalidation.

Validation: yarn lint passed with four existing warnings in unrelated files. yarn test:build passed using the repository's test environment; Next.js reported a 15-minute revalidation period for /blog/[slug], and the generated HTML for the pilot article contained the refreshed text.

@vercel

vercel Bot commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
cipherwill-web-preview Building Building Preview Sep 29, 2026 8:36am UTC
1 Skipped Deployment
Project Deployment Actions Updated
cipherwill Ignored Ignored Sep 29, 2026 8:36am UTC

@Shivam1337
Shivam1337 merged commit 2490382 into main Sep 29, 2026
2 of 3 checks passed
@Shivam1337
Shivam1337 deleted the codex/blog-refresh-cache branch September 29, 2026 09:32

This branch was successfully deployed

1 active deployment
Preview – cipherwill-web-preview — ece36b69 Deployed Sep 29, 2026 by vercel[bot]
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.

2 participants