Is the HTTP verb PURGE idempotent?
If I send the same PURGE request twice will I receive 200 the second time?
I have a microservice that invalidates a Varnish cache before publishing a message into a rabbit queue. In case of purge failure our need is to just log and continue the execution.
The queue consumer has to get the latest status of the resource from the Varnish cache.
Will a new purge request (before actually requesting the resource from varnish) from the second microservice return success in case the first purge from the first microservice succeeded?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…