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

Avoid empty "If-Modified-Since" header in validation request #34385

Merged
merged 1 commit into from Nov 23, 2019

Conversation

mpdude
Copy link
Contributor

@mpdude mpdude commented Nov 14, 2019

Q A
Branch? 3.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets
License MIT
Doc PR

Just noticed that when a response has been cached that is public and has an maxAge but does not provide Last-Modified, the validation subrequest will have an empty If-Modified-Since header value.

@stof
Copy link
Member

stof commented Nov 15, 2019

Can you add a test covering this ?

@mpdude
Copy link
Contributor Author

mpdude commented Nov 18, 2019

@stof You agree it makes sense to put this into the existing test method?

(Yes, that test now fails if I revert the initial change.)

@stof
Copy link
Member

stof commented Nov 23, 2019

Thank you @mpdude.

stof added a commit that referenced this pull request Nov 23, 2019
…st (mpdude)

This PR was squashed before being merged into the 3.4 branch (closes #34385).

Discussion
----------

Avoid empty "If-Modified-Since" header in validation request

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       |
| License       | MIT
| Doc PR        |

Just noticed that when a response has been cached that is `public` and has an `maxAge` but does _not_ provide `Last-Modified`, the validation subrequest will have an empty `If-Modified-Since` header value.

Commits
-------

960faef Avoid empty \"If-Modified-Since\" header in validation request
@stof stof merged commit 960faef into symfony:3.4 Nov 23, 2019
@mpdude mpdude deleted the patch-3 branch November 23, 2019 19:31
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.

None yet

4 participants