Middleware#
Custom Django middleware registered in Settings.
disable_client_side_caching#
Function-based middleware that adds never-cache headers
(Cache-Control: max-age=0, no-cache, no-store, must-revalidate,
Expires: ..., Pragma: no-cache) to every response. Used to
guarantee that prices, transaction graphs and other rapidly-changing
data are never served from a stale browser cache.
Registered in MIDDLEWARE in Settings; it
sits at the tail of the stack, so it applies to every response that
makes it back out.