Middleware ========== Custom Django middleware registered in :doc:`/architecture/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 :doc:`/architecture/settings`; it sits at the tail of the stack, so it applies to every response that makes it back out. .. autofunction:: richy.core.middleware.disable_client_side_caching