v0.39.0
This commit is contained in:
1 parent
5e43752041
commit
15425fb803
34 files changed
+1423
-89
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user