only cache Get and Head

Rodney Bizzell rbizzell at
Fri Mar 17 18:22:01 CET 2017

I wanted to know what is the  correct syntax to only want to cache Get and Head if req.method. I used this  and O got and error when I checked the syntax.

If (req.method ! = "GET"  && req.method ! =  "HEAD") {
  Return (pass);

Does this need to inserted in a particular place

This email (including any attachments) may contain confidential information intended solely for acknowledged recipients. If you think you have received this information in error, please reply to the sender and delete all copies from your system. Please note that unauthorized use, disclosure, or further distribution of this information is prohibited by the sender. Note also that we may monitor email directed to or originating from our network. Thank you for your consideration and assistance. |
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the varnish-misc mailing list