Skip to main content

cache_control_layer

Function cache_control_layer 

Source
pub fn cache_control_layer() -> SetResponseHeaderLayer<HeaderValue>
Expand description

Returns a middleware layer that adds CACHE_CONTROL_VALUE to every response, overriding any existing Cache-Control header.

This prevents intermediate proxies and clients from caching conversion results or health check responses.