P3P Policy header injection middleware
Bases: object
Inject P3P headers so that IE will accept third party cookies from iframes
Note that for IE9 this has to be a valid value - gone are the days where you can fill it in with nonsense.
Inject P3P headers so that IE will accept third party cookies from an iframe.
Parameters: |
|
---|---|
Returns: | Response object with added P3P header |
Return type: | HttpResponse |
Cache and transform header middleware
Prevent caching and HTTP transforms by sending appropriate headers
This is probably a rarely used thing, some enterprise stuff I did requested that nothing generated by django was ever cached, and o2 uk kept mangling up rendered js and suchlike, so its here in the hope that someone might find it useful
Send cache-control and pragma headers with no-transform and no caching stuffs
Parameters: |
|
---|---|
Returns: | Response object with added P3P header |
Return type: | HttpResponse |