OpenQuizz
Une application de gestion des contenus pédagogiques
ExpiresAfter Class Reference
Inheritance diagram for ExpiresAfter:
Collaboration diagram for ExpiresAfter:

Public Member Functions

def __init__ (self, **kw)
 
def update_headers (self, response)
 
def warning (self, response)
 
- Public Member Functions inherited from BaseHeuristic
def apply (self, response)
 

Data Fields

 delta
 

Detailed Description

Cache **all** requests for a defined time period.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
**  kw 
)

Member Function Documentation

◆ update_headers()

def update_headers (   self,
  response 
)
Update the response headers with any new headers.

NOTE: This SHOULD always include some Warning header to
      signify that the response was cached by the client, not
      by way of the provided headers.

Reimplemented from BaseHeuristic.

◆ warning()

def warning (   self,
  response 
)
Return a valid 1xx warning header value describing the cache
adjustments.

The response is provided too allow warnings like 113
http://tools.ietf.org/html/rfc7234#section-5.5.4 where we need
to explicitly say response is over 24 hours old.

Reimplemented from BaseHeuristic.

Field Documentation

◆ delta

delta

The documentation for this class was generated from the following file: