Hi there!
I use the Prismic Rest API to do my content queries.
First, I fetch the last content id (it is called Master Ref) and then the content associated to it.
I use the Incremental Static Generation of Next 13 with a Prismic webhook.
I have a status 200 which confirms me that the revalidate is done. In my route /api/revalidate, I take care to recover the ids and urls of the pages to revalidate. On this side it's ok.
I think the main problem comes from the first fetch and the master ref. It seems that Prismic also caches on its side and prevents Next from revalidating. So I never get the last master ref and my content never updates.
When I disable the caching with cache: no-store, it's working well and I get the master ref that allow me to get the fresh content.
Even if I try to export a constant as a revalidate from page export const revalidate = 10 or an option in a fetch function fetch(route, { next: { revalidate: 10 } }) it's not working.
1 - Maybe the problem is come from headers cache-control of Prismic ?
2 - Maybe anything else ?
Thanks for your help