In message <canzwjw4m_ypycakfvjlrjmfkuvvbuykirs8xq4crgatkazr...@mail.gmail.com>
, AD writes:
>what is the cleanest way to ignore a single query param in the cache key
>(req.hash) without having to modify req.url ?
Use regsub() to strip it, something like:
hash_data(regsub(req.url, "[?].*", ""));
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
[email protected] | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc