Next sends cache-controll public, max-age=0, must-revalidate but I'm force caching the revalidate
Unanswered
Lesser Goldfinch posted this in #help-forum
Lesser GoldfinchOP
I have
export const revalidate = "force-cache";
export const runtime = "edge";
And i want to have small time caching for page because it will allow me to have BFcache for chrome.
I have revalidate api endpoint that triggered by my sanity CMS webhook on post publish
export const revalidate = "force-cache";
export const runtime = "edge";
And i want to have small time caching for page because it will allow me to have BFcache for chrome.
I have revalidate api endpoint that triggered by my sanity CMS webhook on post publish
6 Replies
Lesser GoldfinchOP
Please help someone
Lesser GoldfinchOP
?
Lesser GoldfinchOP
same thing even with
export const dynamic = "force-static";
export const dynamicParams = false;
export const revalidate = "force-cache";
export const fetchCache = "force-cache";
export const dynamic = "force-static";
export const dynamicParams = false;
export const revalidate = "force-cache";
export const fetchCache = "force-cache";
gotta post your code. you are asking a question with zero relevant info to have someone help you.
Lesser GoldfinchOP
What specific info may help?
What code pieces can affect cache headers on page?
What code pieces can affect cache headers on page?
Lesser GoldfinchOP
https://stackblitz.com/edit/stackblitz-starters-ueczah?file=app%2Fpage.tsx
check this out
blank new project with static page
but headers cache no store
how to fix?
check this out
blank new project with static page
but headers cache no store
how to fix?