Caching not-found.tsx and global-error.tsx
Unanswered
Braconid wasp posted this in #help-forum
Braconid waspOP
Hi, is it possibile to specify the cache-control for the not-found.tsx and global-error.tsx pages?
I'm on app router version 15.3.3 and I have the following in next.config.js for headers:
I'm on app router version 15.3.3 and I have the following in next.config.js for headers:
{
source: "/:path*",
headers: [{ key: "Cache-Control", value: "public, max-age=900" }],
},
{
source: "/",
headers: [{ key: "Cache-Control", value: "public, max-age=300" }],
},