File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -464,9 +464,10 @@ 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
- The ``Expires `` header suffers from two limitations. First, the clocks on the
468
- Web server and the cache (e.g. the browser) must be synchronized. Then, the
469
- specification states that "HTTP/1.1 servers should not send ``Expires `` dates
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
470
471
more than one year in the future."
471
472
472
473
.. index ::
You can’t perform that action at this time.
0 commit comments