This commit is contained in:
Mateusz Gruszczyński committed 2026-11-20 17:18:02 +01:00
1 parent 5e43752041
commit 15425fb803
34 files changed
+1423 -89

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
// Optional: remove ALL request cookies for public, identity-independent
// assets under /assets. Origin must never use a session for these assets.
// Vary: Cookie removal is NOT accomplished by this VCL. Configure the
// native "Ignore Vary: Cookie for public static assets" setting separately.
sub vcl_recv {
if (req.method != "GET" && req.method != "HEAD") {
return(pass);
}
if (req.url ~ "^/assets/.*[.](css|js|png|jpg|jpeg|svg|woff2)([?]|$)") {
if (req.http.Authorization) {
return(pass);
}
unset req.http.Cookie;
return(hash);
}
}