-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Improve specification explanation #7601
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
2afc79f
96d1b84
3302f01
29e885c
32857d8
0d32432
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,5 +85,12 @@ the lifetime calculation vulnerable to clock skew. Another limitation | |
of the ``Expires`` header is that the specification states that 8000 "HTTP/1.1 | ||
servers should not send ``Expires`` dates more than one year in the future." | ||
|
||
.. note:: | ||
|
||
Accordingly with `RFC 7234 - Caching`_, the ``Expires`` header value is | ||
ignored when a ``s-max-age`` or ``max-age`` header is defined. | ||
|
||
|
||
.. _`expiration model`: http://tools.ietf.org/html/rfc2616#section-13.2 | ||
.. _`FrameworkExtraBundle documentation`: https://symfony.com/doc/current/bundles/SensioFrameworkExtraBundle/annotations/cache.html | ||
.. _`RFC 7234 - Caching`: https://tools.ietf.org/html/rfc7234 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would make this a deep link to https://tools.ietf.org/html/rfc7234#section-5.3 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah no, maybe that's not the best idea as https://tools.ietf.org/html/rfc7234#section-4.2.1 also contains information about the process that must be applied. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure, the process is well explained in section 4.2.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In fact,
s-maxage
(note the missing second dash) andmax-age
are not headers, but are directives of theCache-Control
header.