CacheControl

Represents the Cache-Control header.

By giving a type of 'request' or 'response' you can control what attributes are allowed (some Cache-Control values only apply to requests or responses).


Attributes

a min_fresh

<webob.cachecontrol.value_property object at 0x880c64c>

a max_age

<webob.cachecontrol.value_property object at 0x880c7ac>

a no_store

<webob.cachecontrol.exists_property object at 0x880c70c>

a s_max_age

<webob.cachecontrol.value_property object at 0x880c7ec>

a must_revalidate

<webob.cachecontrol.exists_property object at 0x880c76c>

a max_stale

<webob.cachecontrol.value_property object at 0x880c62c>

a private

<webob.cachecontrol.value_property object at 0x880c3ec>

a only_if_cached

<webob.cachecontrol.exists_property object at 0x880c66c>

a s_maxage

<webob.cachecontrol.value_property object at 0x880c7ec>

a no_cache

<webob.cachecontrol.value_property object at 0x880c6ec>

a no_transform

<webob.cachecontrol.exists_property object at 0x880c74c>

a proxy_revalidate

<webob.cachecontrol.exists_property object at 0x880c78c>

a public

<webob.cachecontrol.exists_property object at 0x880c68c>

Methods

f __init__(self, properties, type) ...

f parse(cls, header, updates_to=None, type=None) ...

Parse the header, returning a CacheControl object.

The object is bound to the request or response object updates_to, if that is given.

f copy(self) ...

Returns a copy of this object.

See the source for more information.