Impacted feature
The homepage of the website shows the 10 most recently added articles. Some of our users are not seeing the updated content after it is published on Prismic, but the content appears if they visit the website in incognito mode.
Our website is built with the Nextjs pages router and uses the deploy hook integration with Vercel to trigger a new build
What steps have you taken to resolve this issue already?
We looked at some suggestions in this thread, but most of them use the app router so I'm not sure how much they apply to our website still using the pages router
Tried the following steps but none of them worked
- added
cache: 'no-cache',
tofetchOptions
when callingprismic.createClient
inprismisc.ts
:
const client = prismic.createClient(repositoryName, {
...config,
fetchOptions: {
cache: 'no-cache',
...(config.fetchOptions ?? {})
}
})
- set
VERCEL_FORCE_NO_BUILD_CACHE=1
- Updated Next version from 13.4.9 to 14.2.3
Hosting provider
Vercel
I can provide .har files with examples of a request on the homepage showing stale content and one showing the updated content if that helps with debugging.
Is there anything you suggest that can help with this intermittent caching issue?