pub fn storage_decision(
status: u16,
control: &CacheControl,
vary: Option<&str>,
request_was_authenticated: bool,
allow_authenticated: bool,
) -> Result<(), NotStored>Expand description
Decide whether a response may be stored.
A private per-user cache may in principle keep private responses; this
client keeps them only when the caller opted in to authenticated caching,
the conservative reading of the F6 requirement.
ยงErrors
Returns the reason when the response must not be stored.