In our application we cache the requests to Prismic and have configured a webhook to clear the caches once there is an update in our repo prismic.
But sometimes the webhook does not work well and we have random errors 403. I suppose that the errors are caused by the fact that we have cached ref and requesting a resource by using an old ref might cause an error 403. Is that right?
Could someone explain exactly how this ref works? I feel that the old ref expires not immediately but in a certain time. During my test, i got a master ref, and then updated a document and published it. The old ref stills worked at the begining and then started provoking 403 errors.
When requesting the prismic document, could we just indicate it is master lastest modification that we wanna instead of precising a referenceId which will expire frequently?