From 885ddada7157c0e3da0d726f91847075b00e0917 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A5l-Kristian=20Hamre?= Date: Thu, 31 Jul 2025 00:06:50 +0200 Subject: [PATCH] Fix VCL. --- config/varnish/default.vcl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/varnish/default.vcl b/config/varnish/default.vcl index 16c8000..bd85fa7 100644 --- a/config/varnish/default.vcl +++ b/config/varnish/default.vcl @@ -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 {