Quick Media Solutions
Login
Register
Home
PreventProxyCacheMiddleware
PreventProxyCacheMiddleware
Nathan Osman — 11 years ago
from
django.utils.cache
import
add_never_cache_headers
class
PreventProxyCacheMiddleware
:
def
process_response
(
self
,
request
,
response
):
add_never_cache_headers
(
response
)
return
response