Commit 2b775e2
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
-------
d27f02a1a1 [HttpKernel] [HttpCache] Don't throw on 304 Not Modified2 files changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
| 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