Add HIT/MISS info to headers with Django cache middleware

Django cache framework is really great, and since 1.9 we have really useful decorator cache_page (https://docs.djangoproject.com/en/1.9/topics/cache/#the-per-view-cache) that handles per-view caching. However, I missed the ability to add hit/miss info to headers of each request, something that both nginx and varnish add with simple directive in configuration file. What we can do in Django is to […]