Skip to content

Fuxt - Bust Flywheel cache on server-side WP fetches#156

Open
dChiamp wants to merge 1 commit into
masterfrom
cache
Open

Fuxt - Bust Flywheel cache on server-side WP fetches#156
dChiamp wants to merge 1 commit into
masterfrom
cache

Conversation

@dChiamp
Copy link
Copy Markdown
Contributor

@dChiamp dChiamp commented May 13, 2026

Summary

  • Adds Cache-Control: no-cache and Pragma: no-cache headers to all server-side useWpFetch requests
  • Flywheel's reverse proxy is instructed to always hit the WP origin during nuxt generate and ISR revalidation, preventing stale API responses from being served
  • Headers are only sent server-side (import.meta.server) — browser requests are unaffected
  • URLs remain unchanged so Nuxt's fetch deduplication and hydration continue to work correctly

Add Cache-Control: no-cache and Pragma: no-cache headers to all
server-side useWpFetch requests so Flywheel's reverse proxy always
hits the WP origin during generate and ISR revalidation.
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