patch_response_headers(response, cache_timeout=None) [source]
Adds some useful headers to the given HttpResponse object:
ETagLast-ModifiedExpiresCache-Control
Each header is only added if it isn’t already set.
cache_timeout is in seconds. The CACHE_MIDDLEWARE_SECONDS setting is used by default.
Please login to continue.