diff options
| author | Tim Graham <timograham@gmail.com> | 2016-10-14 08:02:19 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-10-14 12:48:03 -0400 |
| commit | 61f9243e5138b79f2671936b4f55941cd02da89e (patch) | |
| tree | 312e84319d474b50f89454421992296d3777ad27 /docs | |
| parent | b679a3cdb119b375f32c3d89b967f9cf6e7fa2f5 (diff) | |
Fixed #27345 -- Stopped setting the Date header in ConditionalGetMiddleware.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/middleware.txt | 5 | ||||
| -rw-r--r-- | docs/releases/1.11.txt | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/docs/ref/middleware.txt b/docs/ref/middleware.txt index d007d252f5..71e888e928 100644 --- a/docs/ref/middleware.txt +++ b/docs/ref/middleware.txt @@ -181,11 +181,12 @@ header, the middleware adds one if needed. If the response has a ``ETag`` or ``If-Modified-Since``, the response is replaced by an :class:`~django.http.HttpResponseNotModified`. -Also sets the ``Date`` and ``Content-Length`` response-headers. +Also sets ``Content-Length`` response-header. .. versionchanged:: 1.11 - In older versions, the middleware didn't set the ``ETag`` header. + In older versions, the middleware set the ``Date`` header and didn't set + the ``ETag`` header. Locale middleware ----------------- diff --git a/docs/releases/1.11.txt b/docs/releases/1.11.txt index 3be654eff5..a83bace8b6 100644 --- a/docs/releases/1.11.txt +++ b/docs/releases/1.11.txt @@ -559,6 +559,9 @@ Miscellaneous * In the admin templates, ``<p class="help">`` is replaced with a ``<div>`` tag to allow including lists inside help text. +* ``ConditionalGetMiddleware`` no longer sets the ``Date`` header as Web + servers set that header. + .. _deprecated-features-1.11: Features deprecated in 1.11 |
