Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
Commitfa063a1
committed
bug#43998 [HttpKernel] [HttpCache] Don't throw on 304 Not Modified (aleho)
This PR was merged into the 4.4 branch.Discussion----------[HttpKernel] [HttpCache] Don't throw on 304 Not Modified| Q | A| ------------- | ---| Branch? | 4.4| Bug fix? | yes| New feature? | no| Deprecations? | no| Tickets |Fixes#43997| License | MIT| Doc PR | ~If the response cache keeps a `Last-Modified` header clients will request with `If-Modified-Since`.The surrogate will not handle a `304 Not Modified` correctly, resulting in a 500 and a failed request.This fixes that request / response cycle, as observed in testing PR#42355.Commits-------d27f02a [HttpKernel] [HttpCache] Don't throw on 304 Not ModifiedFile tree
2 files changed
+10
-1
lines changed- src/Symfony/Component/HttpKernel
- HttpCache
- Tests/HttpCache
2 files changed
+10
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
224 | 233 | | |
225 | 234 | | |
226 | 235 | | |
| |||
0 commit comments
Comments
(0)