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,17 @@
|
||||
// Defense in depth for streaming and transient backend responses.
|
||||
// Does not implement retries, synthetic error handling or stale-if-error.
|
||||
sub vcl_recv {
|
||||
if (req.url ~ "^/(events|stream|webhook)(/|[?]|$)") {
|
||||
return(pass);
|
||||
}
|
||||
}
|
||||
|
||||
sub vcl_backend_response {
|
||||
if (beresp.http.Content-Type ~ "^text/event-stream") {
|
||||
set beresp.uncacheable = true;
|
||||
return(deliver);
|
||||
}
|
||||
if (beresp.status >= 500) {
|
||||
set beresp.uncacheable = true;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user