« All posts

PSA: Next 14 Caches Your POST Requests and Supabase Queries

Next.js 14 caches POST requests and Supabase queries, potentially causing issues. Check your cache settings to avoid errors.

In Next.js 14, POST requests and Supabase queries are cached, which can lead to unexpected issues. Through three production incidents, it was discovered that any fetch returning a 200 status code can be cached, causing problems in applications that check user subscription statuses. The cache persists in .next/cache/fetch-cache, leading to stale data even after server restarts.