80
80
if not response.has_header('Expires'):
81
81
expires = now + datetime.timedelta(0, cache_timeout)
82
82
response['Expires'] = expires.strftime('%a, %d %b %Y %H:%M:%S GMT')
83
85
patch_cache_control(response, max_age=cache_timeout)
85
94
def patch_vary_headers(response, newheaders):
87
96
Adds (or updates) the "Vary" header in the given HttpResponse object.