class documentation

class RFC2616Policy: (source)

View In Hierarchy

Undocumented

Method __init__ Undocumented
Method is_cached_response_fresh Undocumented
Method is_cached_response_valid Undocumented
Method should_cache_request Undocumented
Method should_cache_response Undocumented
Constant MAXAGE Undocumented
Instance Variable always_store Undocumented
Instance Variable ignore_response_cache_controls Undocumented
Instance Variable ignore_schemes Undocumented
Method _compute_current_age Undocumented
Method _compute_freshness_lifetime Undocumented
Method _get_max_age Undocumented
Method _parse_cachecontrol Undocumented
Method _set_conditional_validators Undocumented
Instance Variable _cc_parsed Undocumented
def __init__(self, settings): (source)

Undocumented

def is_cached_response_fresh(self, cachedresponse, request): (source)

Undocumented

def is_cached_response_valid(self, cachedresponse, response, request): (source)

Undocumented

def should_cache_request(self, request): (source)

Undocumented

def should_cache_response(self, response, request): (source)

Undocumented

Undocumented

Value
(3600*24)*365
always_store = (source)

Undocumented

ignore_response_cache_controls = (source)

Undocumented

ignore_schemes = (source)

Undocumented

def _compute_current_age(self, response, request, now): (source)

Undocumented

def _compute_freshness_lifetime(self, response, request, now): (source)

Undocumented

def _get_max_age(self, cc): (source)

Undocumented

def _parse_cachecontrol(self, r): (source)

Undocumented

def _set_conditional_validators(self, request, cachedresponse): (source)

Undocumented

_cc_parsed = (source)

Undocumented