Skip to content

fix: enable Vercel external rewrite caching - #13

Merged
kingsleydon merged 1 commit into
mainfrom
vercel-rewrite-caching
Oct 29, 2026
Merged

kingsleydon merged 1 commit into
mainfrom
vercel-rewrite-caching

Conversation

@kingsleydon

Copy link
Copy Markdown
Collaborator

The existing pha-circulation-server Vercel project predates April 6, 2026, so its external rewrite ignores upstream caching directives until caching is enabled. Add the documented x-vercel-enable-rewrite-caching: 1 header for /api/:path* so the Worker's Vercel-CDN-Cache-Control determines the CDN TTL.

Update the operations and API docs with the configured opt-in, post-deployment x-vercel-cache: HIT verification, and the separate Vercel purge requirement.

Validation:

  • Config validated against the official Vercel JSON schema with Python jsonschema (Draft4Validator).
  • bun run check passed (118 files).
  • git diff --check passed.

No deployment performed; live cache HIT verification remains after deployment.

@vercel

vercel Bot commented Oct 29, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
pha-circulation-server Ready Ready Preview Oct 29, 2026 9:28am UTC

Request Review

@kingsleydon
kingsleydon merged commit 93db37f into main Oct 29, 2026
7 checks passed

This branch was successfully deployed

1 active deployment
Preview — 0d22508b Deployed Oct 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.

1 participant