Skip to content
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

Improved the HTTPCache examples mentioning s-maxage #13359

Merged
merged 1 commit into from
Jun 24, 2020

Conversation

javiereguiluz
Copy link
Member

Fixes #12934.

@javiereguiluz javiereguiluz added this to the 4.4 milestone Mar 16, 2020
@javiereguiluz
Copy link
Member Author

@mpdude could you please review this? Thanks!

.. note::

Using the ``setSharedMaxAge()`` may seem equivalent to using both ``setPublic()``
and ``setMaxAge()`` methods. However, their behavior is different in a
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My suggestion would be to refer to https://tools.ietf.org/html/rfc7234#section-4.2.4:

"However, the setSharedMaxAge() method and the corresponsing s-maxage setting have the additional implication of prohibiting a cache to use a stale response in particular error scenarios. See RFC 7234 Section 4.2.4 for details."

(Does "stale" make sense in the context of this page, is it a term we have used or defined before?)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your review! I added this while merging the pull request.

@mpdude
Copy link
Contributor

mpdude commented Jun 14, 2020

Thank you @javiereguiluz for picking this up and sorry – I must have missed the notification back in March.

I have a small recommendation/addition to make, but I'd like to leave it up to you to decide.

Re-reading the docs on the topic, I find that we might want to dedicate a few lines to the difference between public and private, but I'll open another issue for that.

@javiereguiluz javiereguiluz merged commit a04aba9 into symfony:4.4 Jun 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants