PreventProxyCacheMiddleware
Nathan Osman — 3¬†years, 3¬†months 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