8000 minor #7601 Improve specification explanation (matthieu88160, javiere… · symfony/symfony-docs@f64f6f0 · GitHub
[go: up one dir, main page]

Skip to content

Commit f64f6f0

Browse files
committed
minor #7601 Improve specification explanation (matthieu88160, javiereguiluz)
This PR was submitted for the 3.2 branch but it was merged into the 2.7 branch instead (closes #7601). Discussion ---------- Improve specification explanation RFC 2616 and RFC 7234 define that a recipient MUST ignore Expires header if one of `s-max-age` or `max-age` header is defined. Commits ------- ce64af5 Update expiration.rst 46e6408 Update expiration.rst b66e4d7 Update expiration.rst 13102da Update expiration.rst 8666bed Minor reword and fixed the line length 232c029 Improve specification explanation
2 parents 4de8599 + ce64af5 commit f64f6f0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

http_cache/expiration.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,12 @@ the lifetime calculation vulnerable to clock skew. Another limitation
8585
of the ``Expires`` header is that the specification states that "HTTP/1.1
8686
servers should not send ``Expires`` dates more than one year in the future."
8787

88+
.. note::
89+
90+
Accordingly with `RFC 7234 - Caching`_, the ``Expires`` header value is
91+
ignored when ``s-maxage`` or ``max-age`` directives are defined.
92+
93+
8894
.. _`expiration model`: http://tools.ietf.org/html/rfc2616#section-13.2
8995
.. _`FrameworkExtraBundle documentation`: https://symfony.com/doc/current/bundles/SensioFrameworkExtraBundle/annotations/cache.html
96+
.. _`RFC 7234 - Caching`: https://tools.ietf.org/html/rfc7234#section-4.2.1

0 commit comments

Comments
 (0)
0