Skip to main content

cache_control_for

Function cache_control_for 

Source
pub fn cache_control_for(content_type: &str) -> Option<&'static str>
Expand description

Return the Cache-Control header value appropriate for a response of the supplied content_type, or None to leave the header unset. RDF variants always get CACHE_CONTROL_RDF; non-RDF payloads (binary blobs, images, etc.) are left to caller policy.