Skip to main content

remove_cache_validation_response_headers

Function remove_cache_validation_response_headers 

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

Remove cache validators and representation range metadata from a response.

These headers describe validators or byte range capabilities of the response representation. They may become invalid if the response body is transformed, reencoded, or regenerated.

Call this after changing the response body, changing content encoding, or otherwise making the downstream representation differ from the upstream representation.