kvarn::comprash

Enum ClientCachePreference

source
pub enum ClientCachePreference {
    Ignore,
    None,
    Changing,
    Full,
    MaxAge(Duration),
}
Expand description

Automatically add cache-control header to response.

If a cache-control header is already present, it will be prioritized.

Variants§

§

Ignore

Don’t manage the cache-control header.

§

None

Will not cache on client

§

Changing

A two-minute cache lifetime

§

Full

Will cache for 1 week

§

MaxAge(Duration)