From d85d372a651f5460adcdb7acd33beda2954ec921 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A5l-Kristian=20Hamre?= Date: Thu, 31 Jul 2025 00:11:46 +0200 Subject: [PATCH] Fix VCL. --- config/varnish/default.vcl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/config/varnish/default.vcl b/config/varnish/default.vcl index bd85fa7..16c8000 100644 --- a/config/varnish/default.vcl +++ b/config/varnish/default.vcl @@ -5,7 +5,6 @@ include "hit-miss.vcl"; # import vmod_dynamic for better backend name resolution import dynamic; -import vmod_dynamic import std; backend default { @@ -31,12 +30,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(pass); + return(hash); } # Remove all cookies for other requests unset req.http.Cookie; - return(pass); + return(hash); } sub vcl_backend_response {