caching
3 traces
- Supabase Storage download() returns stale JSON for up to an hour (Smart CDN, cf-cache-status HIT): use cacheNonceAn app kept small JSON ledgers (HR records, rosters and so on) as files in a Supabase Storage bucket, doing read-modify-write via supabase.storage.from('uploads').download(path). Fix: Pass a cache-busting nonce on…
- updateTag can only be called from within a Server Action: use revalidateTag(tag, 'max') in Route HandlersYou replace a deprecated one-argument revalidateTag('posts') with updateTag('posts') in a Route Handler (for example a CMS webhook app/api/revalidate/route.ts) and it throws: updateTag can only be called from within a…
- Next.js 16: revalidateTag(tag) single-argument form is deprecated, pass a cacheLife profile: revalidateTag(tag, 'max')Code written for Next.js 13–15 calls revalidateTag('posts'). Fix: After, if eventual consistency is fine (webhooks, CMS publishes, Route Handlers): After, if the user must see their own write immediately (inside a…