A Few Questions

Scott Wilcox scott at dor.ky
Sat Jul 9 23:21:57 CEST 2011


1) Can listening host/port be set in the VCL?

2) I want to do something similar to:

sub vcl_hit {
	set obj.http.X-Cache-Hit = "true";
	return (deliver);
}
sub vcl_miss {
	set obj.http.X-Cache-Hit = "false";
	return (fetch);
}

for debugging purposes, however when I add that to a VCL, I get:

Message from VCC-compiler:
'obj.http.X-Cache-Hit': cannot be set in method 'vcl_hit'.

Thanks in advance.

--
Scott Wilcox

@dordotky | scott at dor.ky | http://dor.ky
+44 (0) 7538 842418 | +1 (646) 827-0580

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20110709/d401850f/attachment-0003.html>


More information about the varnish-misc mailing list