Skip to content

[HTTP Cache] typo; improve/simplify code samples; formatting #3350

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

Merged
merged 2 commits into from
Dec 26, 2013
Merged

[HTTP Cache] typo; improve/simplify code samples; formatting #3350

merged 2 commits into from
Dec 26, 2013

Conversation

bicpi
Copy link
Contributor

@bicpi bicpi commented Dec 16, 2013

Q A
Doc fix? yes
New docs? no
Applies to all
Fixed tickets -

Notice: Changed the formatting of the Vary header example according to Cache-Control (no code block).

@@ -716,8 +716,6 @@ request's ``Accept-Encoding`` value. This is done by using the ``Vary`` response
header, which is a comma-separated list of different headers whose values
trigger a different representation of the requested resource:

.. code-block:: text
Copy link
Member

Choose a reason for hiding this comment

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

Why did you remove this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In the beginning of the chapter there is an example for the Cache-Control header, it it using a simple box. But the Vary header example here is using a different format - a text block. So either the Cache-Control example should become a text block or the Vary example should become a normal box. What do you think?

See also my comment in the Conversation tab.

Copy link
Member

Choose a reason for hiding this comment

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

The simple box actually is a rendered as a blockquote. Thus, I'd change the Cache-Control example since a code block better fits the meaning.

weaverryan added a commit that referenced this pull request Dec 26, 2013
[HTTP Cache] typo; improve/simplify code samples; formatting
@weaverryan weaverryan merged commit 8586f39 into symfony:2.3 Dec 26, 2013
@weaverryan
Copy link
Member

All good changes - nice work!

@bicpi bicpi deleted the some_improvements branch December 27, 2013 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants