Hi,
We are facing netlify caching issue, even after purging the cache via purge/api. Our site details are as follows. We are use the netlify durable cache and you can see the configuration as follows.
initially we have setup the netlify-cdn-cache-control to
public, s-maxage=86400, durable
But we are receiving stale responses even after purging the cache via purge-api, so we added must-revalidate inorder to avoid serving stale content.
But still we see stale content being rendered. after the config i’ve attached the screenshots as well. Please check.
Netlify Site Name: https://qa-fnl-content.netlify.app
Next.js 14.
Our header config in next.config.js file
async headers() {
return [
{
source: "/:path*",
headers: [
{
key: "Netlify-CDN-Cache-Control",
value: `public, s-maxage=86400, durable, must-revalidate`,
},
{
key: "Cache-Tag",
value: "common-tag",
},
],
},
];
},
1st Request:
2nd Request:
Triggered the purge api now
3rdRequest:
This one was made after Cache Purge, if you see 2nd and 3rd request has no differences in response
4th Request:
Final Request after half-an-hour We expected this to happen at the 3rd request or 4th request.
So please help on the issue where we are getting stale content being served by Netlify-durable/edge even after purging.