# Browsers identify the intended purpose of a request via the
# Sec-Fetch-Dest header (https://w3c.github.io/webappsec-fetch-metadata/)
# but you should also strip querystrings from any URLs that you know
# are not affected by querystring.
if (req.http.Sec-Fetch-Dest ~ "^(audio|audioworklet|embed|font|image|manifest|object|paintworklet|script|sharedworker|style|track|video|worker|xslt)$" || req.url.path ~ "\.(jpe?g|gif|png|webp|css|)$") {
set req.url = req.url.path;
}