1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Normalized spelling of ETag.

This commit is contained in:
Tim Graham
2016-09-09 11:00:21 -04:00
parent ca9c69a968
commit ef021412d5
8 changed files with 7 additions and 8 deletions

View File

@@ -472,7 +472,7 @@ Here are some hints about the ordering of various Django middleware classes:
#. :class:`~django.middleware.http.ConditionalGetMiddleware`
Before ``CommonMiddleware``: uses its ``Etag`` header when
Before ``CommonMiddleware``: uses its ``ETag`` header when
:setting:`USE_ETAGS` = ``True``.
#. :class:`~django.contrib.sessions.middleware.SessionMiddleware`

View File

@@ -2527,7 +2527,7 @@ to ensure your processes are running in the correct environment.
Default: ``False``
A boolean that specifies whether to output the "Etag" header. This saves
A boolean that specifies whether to output the ``ETag`` header. This saves
bandwidth but slows down performance. This is used by the ``CommonMiddleware``
(see :doc:`/topics/http/middleware`) and in the``Cache Framework``
(see :doc:`/topics/cache`).

View File

@@ -239,7 +239,6 @@ environ
escapejs
esque
Ess
Etag
ETag
ETags
exe

View File

@@ -64,7 +64,7 @@ order, as the view function they are helping to wrap. The function passed
``last_modified_func`` should return a standard datetime value specifying the
last time the resource was modified, or ``None`` if the resource doesn't
exist. The function passed to the ``etag`` decorator should return a string
representing the `Etag`_ for the resource, or ``None`` if it doesn't exist.
representing the `ETag`_ for the resource, or ``None`` if it doesn't exist.
Using this feature usefully is probably best explained with an example.
Suppose you have this pair of models, representing a simple blog system::