Project

General

Profile

Bug #1115

cache_page_if_ajax doesn't work with 1.8+

Added by Luke Murphey over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
11/21/2015
Due date:
% Done:

100%


views.py View (32.9 KB) Luke Murphey, 11/21/2015 08:24 AM

History

#1 Updated by Luke Murphey over 8 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

#3 Updated by Luke Murphey over 8 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

#4 Updated by Luke Murphey over 8 years ago

Another approach is to use patch_cache_control and never_cache

Also available in: Atom PDF