Different host headers - same cache?
Guillaume Quintard
guillaume at varnish-software.com
Mon Oct 24 11:32:34 CEST 2016
Why isn't unsetting the host header (to let varnish use .host_header)
acceptable?
I wouldn't worry about the performance impact of strstr, but if you really
don't like it, you can do this:
if ("somebackend" == bereq.backend + "")
to force the type conversion. If you feel really nostalgic, you can even do:
if ("xsomebackend" == "x" + bereq.backend)
But only a madman would take pleasure in this.
--
Guillaume Quintard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20161024/57fce397/attachment.html>
More information about the varnish-misc
mailing list