17 lines
605 B
Plaintext
17 lines
605 B
Plaintext
// 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);
|
|
}
|
|
}
|