Skip to main content

remove_cache_policy_headers

Function remove_cache_policy_headers 

pub fn remove_cache_policy_headers(headers: &mut HeaderMap)
Expand description

Remove caching policy headers.

These headers control how requests and responses may be cached by clients and intermediaries. Removing them can be useful when the proxy wants to enforce its own caching policy or prevent caching entirely.

Call this when you want to disable or normalize caching behavior across a trust boundary.