Bug #1115
cache_page_if_ajax doesn't work with 1.8+
Start date:
11/21/2015
Due date:
% Done:
100%
Description
Some options:
Manually cache using patch_cache_control: Use vary on headers: Fix wrapper:History
#1
Updated by Luke Murphey almost 10 years ago
It isn't clear to me if the CacheMiddleware looks at the headers to determine if it should cache or if functions like patch_cache_control and never_cache are just commands to the browser. This document seems to imply the headers do affect the cache middleware: https://docs.djangoproject.com/en/1.8/topics/cache/#order-of-middleware-classes
#2
Updated by Luke Murphey almost 10 years ago
Another possibility is to use custom cache middleware: http://stackoverflow.com/questions/10940592/technique-for-subclassing-django-updatecachemiddleware-and-fetchfromcachemiddlew
#3
Updated by Luke Murphey almost 10 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
#4
Updated by Luke Murphey almost 10 years ago
Another approach is to use patch_cache_control and never_cache