Problem in varnish

Reinis Rozitis r at roze.lv
Thu May 2 14:18:33 CEST 2013


> if(req.request=="PURGE")
>
> here what is PURGE and Where to set PURGE variable . please help me out.

PURGE is a http request type (like GET or POST).
It’s typically used for cache invalidation 
https://www.varnish-software.com/static/book/Cache_invalidation.html


A simple way to craft a PURGE request is by using curl for example: 
curl -I -X PURGE http://yoursite.org/yourfile


rr 




More information about the varnish-misc mailing list