Hello,
I run Varnish in front of a stack that doesn't respond to OPTIONS requests.
I'd like to filter out these requests from our error logs, because
currently they respond with a 404, which means there's quite a lot of noise.
I've been using this snippet at the top of vcl_recv:
if (req.request == "OPTIONS") {
error 204 "No Content";
}
Is that the best place for it, or are there better places instead?
Similarly, is that the best way of doing this?
Thanks,
--
Andrew Langhorn
Web Operations
Government Digital Service
e: [email protected]
a: 6th Floor, Aviation House, 125 Kingsway, London, WC2B 6NH
_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc