summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-12-24 11:37:21 -0500
committerTim Graham <timograham@gmail.com>2015-12-24 11:38:39 -0500
commit85159b98196e129e6ad493b503f3b49012c280ff (patch)
tree22f38c341238ee15e522eed7c40363a447fbbd54
parentfa21766230519eba1c7f14021b9647c8d29f5999 (diff)
[1.9.x] Refs #13008 -- Forwardported 1.8.8 release note.
Forwardport of b51086d57313e7ea857f4b96b62d25e600ee0a8d from stable/1.8.x
-rw-r--r--docs/ref/utils.txt4
-rw-r--r--docs/releases/1.8.8.txt8
-rw-r--r--docs/releases/1.9.txt2
3 files changed, 11 insertions, 3 deletions
diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt
index 3179a5527d..64225a432d 100644
--- a/docs/ref/utils.txt
+++ b/docs/ref/utils.txt
@@ -68,9 +68,9 @@ need to distinguish caches by the ``Accept-language`` header.
Adds a ``Cache-Control: max-age=0, no-cache, no-store, must-revalidate``
header to a response to indicate that a page should never be cached.
- .. versionchanged:: 1.9
+ .. versionchanged:: 1.8.8
- Before Django 1.9, ``Cache-Control: max-age=0`` was sent. This didn't
+ In older versions, ``Cache-Control: max-age=0`` was sent. This didn't
reliably prevent caching in all browsers.
.. function:: patch_vary_headers(response, newheaders)
diff --git a/docs/releases/1.8.8.txt b/docs/releases/1.8.8.txt
index e35ed250f5..f3c4e8bba1 100644
--- a/docs/releases/1.8.8.txt
+++ b/docs/releases/1.8.8.txt
@@ -40,3 +40,11 @@ Bugfixes
* Fixed a regression which prevented using a language not in Django's default
language list (:setting:`LANGUAGES`) (:ticket:`25915`).
+
+* ``django.views.decorators.cache.never_cache()`` now sends more persuasive
+ headers (added ``no-cache, no-store, must-revalidate`` to ``Cache-Control``)
+ to better prevent caching (:ticket:`13008`). This fixes a problem where a
+ page refresh in Firefox cleared the selected entries in the admin's
+ ``filter_horizontal`` and ``filter_vertical`` widgets, which could result
+ in inadvertent data loss if a user didn't notice that and then submitted the
+ form (:ticket:`22955`).
diff --git a/docs/releases/1.9.txt b/docs/releases/1.9.txt
index fbf461312d..bc29228881 100644
--- a/docs/releases/1.9.txt
+++ b/docs/releases/1.9.txt
@@ -300,7 +300,7 @@ Cache
* :func:`django.views.decorators.cache.never_cache` now sends more persuasive
headers (added ``no-cache, no-store, must-revalidate`` to ``Cache-Control``)
- to better prevent caching.
+ to better prevent caching. This was also added in Django 1.8.8.
CSRF
^^^^