This commit is contained in:
Mateusz Gruszczyński committed 2026-11-25 15:47:34 +01:00
1 parent 6df256cdbb
commit 0d6249e383
159 files changed
+16737 -1971

No files matched your search

+15
View File
@@ -35,6 +35,21 @@ Transformations can run on eligible reverse-proxy and Web Server responses. When
## Custom and security headers
For conditional operations, named ACLs, full-field counts, regex replacement or
safe `Vary` list normalization, use [HTTP policy rules](POLICY.md) (0.42.0).
`backend_response` changes origin headers before cache planning; `deliver` runs
after VCL delivery and before compression; `after_response` runs after
compression and the existing dynamic header rules. Existing Custom Headers keep
their behavior. A normalization rule preserves all variant dimensions instead
of replacing them with a fixed list.
Configuring a `backend_response` policy, or adding a policy `hash_header`
dimension to a request, makes expired stale-while-revalidate objects use
foreground validation and disables proactive background refresh for that
request. Fresh HITs remain available. Foreground `304` validation uses
the same policy no-store/TTL decisions and existing VCL TTL/grace precedence.
See the policy guide for request-dependent cache bypass and explicit stale rules.
Configure global response headers, Vhost-specific policies and Web Server/location headers at the appropriate scope. Header rules can set, append or remove allowed names. Certain routing, forwarding, framing, cache diagnostics and security-sensitive fields are protected or subject to extra validation. Review especially HSTS, CSP, CORS and application-specific cookies before using a broad rule.
### Variables in header values (diagnostic headers)