Varnish purge on POST or PUT

Solution 1:

see this..

https://www.varnish-cache.org/docs/trunk/tutorial/purging.html

basically you are doing a lookup on what you want to pass.. then to the purge in the hit/miss