This commit is contained in:
2025-07-31 00:06:50 +02:00
parent 8b6ad157dc
commit 885ddada71

View File

@@ -5,6 +5,7 @@ include "hit-miss.vcl";
# import vmod_dynamic for better backend name resolution
import dynamic;
import vmod_dynamic
import std;
backend default {
@@ -30,12 +31,12 @@ sub vcl_recv {
# Cache static files
if (req.url ~ "\.(css|js|avif|webp|png|jpe?g|gif|ico|svg|woff2?|eot|ttf|otf|json|csv|pdf|mp4|webm|ogg|mp3|wav|flac)$") {
unset req.http.Cookie;
return(hash);
return(pass);
}
# Remove all cookies for other requests
unset req.http.Cookie;
return(hash);
return(pass);
}
sub vcl_backend_response {