hit-for-pass clarification

kioto mitsubisi reader_1000 at hotmail.com
Wed May 20 17:08:53 CEST 2015


Using a simple cgi script (as varnish book examples), I tested the scenario and it seems that I also need to remove set-cookie header from backend response, otherwise it create a hit-for-pass object.

#! /bin/sh
sleep 5
echo "Content-type: text/plain"
#echo "Cache-control: max-age=0"
echo "Set-Cookie: dummy=var; Path=/; HttpOnly"
echo "Hello world"


More information about the varnish-misc mailing list