Skip to main content

cache_control

Function cache_control 

Source
pub fn cache_control(directive: &str) -> SetResponseHeaderLayer<HeaderValue>
Expand description

Returns a layer that sets the Cache-Control response header if not already present.

The provided directive is used as the header value (e.g. "max-age=3600" or "no-cache, no-store, must-revalidate").