🌐 AI搜索 & 代理 主页
Skip to content

Conversation

@jakzal
Copy link
Contributor

@jakzal jakzal commented May 14, 2015

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #12118
License MIT
Doc PR -

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There's one more place in this class where only the first vary header is used. It doesn't seem to be an issue in there though. At least I failed to introduce a failing test justifying a change (so far).

@jakzal jakzal force-pushed the bugfix/http-kernel-12118-vary-headers-passed-as-array branch from e2a5a4e to 5930800 Compare May 14, 2015 15:01
@nicolas-grekas
Copy link
Member

👍

@fabpot fabpot changed the title [WIP][HttpKernel] Handle an array vary header in the http cache store [HttpKernel] Handle an array vary header in the http cache store May 21, 2015
@fabpot
Copy link
Member

fabpot commented May 21, 2015

Thank you @jakzal.

@fabpot fabpot merged commit 5930800 into symfony:2.3 May 21, 2015
fabpot added a commit that referenced this pull request May 21, 2015
… store (jakzal)

This PR was merged into the 2.3 branch.

Discussion
----------

[HttpKernel] Handle an array vary header in the http cache store

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #12118
| License       | MIT
| Doc PR        | -

Commits
-------

5930800 [HttpKernel] Handle an array vary header in the http cache store
@jakzal jakzal deleted the bugfix/http-kernel-12118-vary-headers-passed-as-array branch May 21, 2015 06:46
nicolas-grekas added a commit that referenced this pull request Sep 12, 2025
… store for write (philpichet)

This PR was squashed before being merged into the 6.4 branch.

Discussion
----------

[HttpKernel] Handle an array vary header in the http cache store for write

| Q             | A
| ------------- | ---
| Branch?       | 6.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Issues        | -
| License       | MIT

We can have multiple vary on a response :
```
< HTTP/1.1 200 OK
< Content-Type: application/json
< Vary: Accept-Encoding
< Vary: Foo
< Content-Length: 1234
```

But if we make several calls with different value for the header `Foo`, we don't check them and remove the previous responses.

This fix has the purpose to check all values to keep previous call

Releated to #14635

Commits
-------

c818606 [HttpKernel] Handle an array vary header in the http cache store for write
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants