Commit 89fd6db
authored
Add 204 and 308 to heuristically cacheable status codes (#13015)
* Add 204 (No Content) and 308 (Permanent Redirect) to the
heuristic caching allowlist in is_response_cacheable(),
per RFC 9110 Section 15.1.
* Add autest validating all seven RFC 9110 heuristically
cacheable codes (200, 203, 204, 300, 301, 308, 410) are
cached with only Last-Modified present, and non-cacheable
codes (302, 307, 400, 403) are not.1 parent 1c97530 commit 89fd6db
3 files changed
Lines changed: 537 additions & 1 deletion
File tree
- src/proxy/http
- tests/gold_tests/cache
- replay
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6563 | 6563 | | |
6564 | 6564 | | |
6565 | 6565 | | |
6566 | | - | |
| 6566 | + | |
| 6567 | + | |
6567 | 6568 | | |
6568 | 6569 | | |
6569 | 6570 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
0 commit comments