freshness.any.html
Details
- Test
/fetch/http-cache/freshness.any.html- Harness
- OK
Subtests
| Status | Subtest |
|---|---|
| FAIL | HTTP cache reuses a response with a future Expires assert_less_than: Response 2 does not come from cache expected a number less than 2 but got 2 |
| PASS | HTTP cache does not reuse a response with a past Expires |
| PASS | HTTP cache does not reuse a response with a present Expires |
| PASS | HTTP cache does not reuse a response with an invalid Expires |
| PASS | HTTP cache does not reuse a response with an invalid Expires with Last-Modified now |
| PASS | HTTP cache does not reuse a response with an invalid Expires with past Last-Modified |
| FAIL | HTTP cache reuses a response with positive Cache-Control: max-age assert_less_than: Response 2 does not come from cache expected a number less than 2 but got 2 |
| PASS | HTTP cache does not reuse a response with Cache-Control: max-age=0 |
| FAIL | HTTP cache reuses a response with positive Cache-Control: max-age and a past Expires assert_less_than: Response 2 does not come from cache expected a number less than 2 but got 2 |
| FAIL | HTTP cache reuses a response with positive Cache-Control: max-age and an invalid Expires assert_less_than: Response 2 does not come from cache expected a number less than 2 but got 2 |
| PASS | HTTP cache does not reuse a response with Cache-Control: max-age=0 and a future Expires |
| PASS | HTTP cache does not prefer Cache-Control: s-maxage over Cache-Control: max-age |
| PASS | HTTP cache does not reuse a response when the Age header is greater than its freshness lifetime |
| PASS | HTTP cache does not store a response with Cache-Control: no-store |
| PASS | HTTP cache does not store a response with Cache-Control: no-store, even with max-age and Expires |
| FAIL | HTTP cache stores a response with Cache-Control: no-cache, but revalidates upon use promise_test: Unhandled rejection with value: object "TypeError: This ReadableStream is disturbed (has already been read from), and cannot be used as a body." |
| FAIL | HTTP cache stores a response with Cache-Control: no-cache, but revalidates upon use, even with max-age and Expires promise_test: Unhandled rejection with value: object "TypeError: This ReadableStream is disturbed (has already been read from), and cannot be used as a body." |