fix headerow

This commit is contained in:
Mateusz Gruszczyński
2025-09-25 09:39:08 +02:00
parent 9b131824e8
commit 419d01f74d
2 changed files with 19 additions and 0 deletions

View File

@@ -71,6 +71,10 @@ sub vcl_recv {
return (hash);
}
if (!req.http.X-Forwarded-Proto) {
set req.http.X-Forwarded-Proto = "https";
}
return (hash);
}
@@ -104,6 +108,14 @@ sub vcl_backend_response {
set beresp.uncacheable = true;
set beresp.ttl = 0s;
return (deliver);
# NIE cache'uj redirectów do loginu (HTML) z backendu
if (beresp.status >= 300 && beresp.status < 400) {
set beresp.uncacheable = true;
set beresp.ttl = 0s;
return (deliver);
}
}
# ---- STATYCZNE: zdejmij Set-Cookie i Vary: Cookie, zapewnij TTL ----