File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -464,11 +464,12 @@ The resulting HTTP header will look like this::
464
464
The ``setExpires() `` method automatically converts the date to the GMT
465
465
timezone as required by the specification.
466
466
467
- Note that the ``Expires `` header is not vulnerable to clock skew, since the
468
- lifetime is calculated using the ``Date `` header which comes from the
469
- origin server as well instead of using the local clock.
470
- The specification states that "HTTP/1.1 servers should not send ``Expires `` dates
471
- more than one year in the future."
467
+ Note that in HTTP versions before 1.1 the origin server wasn't required to
468
+ send the ``Date `` header. Consequently the cache (e.g. the browser) might
469
+ need to rely onto his local clock to evaluate the ``Expires `` header making
470
+ the lifetime calculation vulnerable to clock skew. Another limitation
471
+ of the ``Expires `` header is that the specification states that "HTTP/1.1
472
+ servers should not send ``Expires `` dates more than one year in the future."
472
473
473
474
.. index ::
474
475
single: Cache; Cache-Control header
@@ -1045,4 +1046,4 @@ Learn more from the Cookbook
1045
1046
.. _`HTTP Bis` : http://tools.ietf.org/wg/httpbis/
1046
1047
.. _`P4 - Conditional Requests` : http://tools.ietf.org/html/draft-ietf-httpbis-p4-conditional-12
1047
1048
.. _`P6 - Caching: Browser and intermediary caches` : http://tools.ietf.org/html/draft-ietf-httpbis-p6-cache-12
1048
- .. _`ESI` : http://www.w3.org/TR/esi-lang
1049
+ .. _`ESI` : http://www.w3.org/TR/esi-lang
You can’t perform that action at this time.
0 commit comments