Files @ 6770e83e5d57
Branch filter:

Location: symposion_app/pinaxcon/disable_cscache.py

James Polley
Switch to png as a plain boring attachment

In the body of the email, we can load the image direct from the
site. Prolly gonna fail a lot but at least it's a loud known visible
failure
1
2
3
4
5
6
7
from django.utils.cache import add_never_cache_headers


class DisableClientSideCachingMiddleware(object):
    def process_response(self, request, response):
        add_never_cache_headers(response)
        return response