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

@@ -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;
}
}