tree: 3ea1ce0dcad08051d838845b415b50b40caeec9a [path history] [tgz]
  1. resources/
  2. 304-update-expected.txt
  3. 304-update.html
  4. cc-request-expected.txt
  5. cc-request.html
  6. freshness-expected.txt
  7. freshness.html
  8. heuristic-expected.txt
  9. heuristic.html
  10. http-cache.js
  11. invalidate-expected.txt
  12. invalidate.html
  13. partial-expected.txt
  14. partial.html
  15. README.md
  16. status-expected.txt
  17. status.html
  18. vary-expected.txt
  19. vary.html
  20. w3c-import.log
LayoutTests/imported/w3c/web-platform-tests/fetch/http-cache/README.md

HTTP Caching Tests

These tests cover HTTP-specified behaviours for caches, primarily from RFC7234, but as seen through the lens of Fetch.

A few notes:

  • By its nature, caching is optional; some tests expecting a response to be cached might fail because the client chose not to cache it, or chose to race the cache with a network request.

  • Likewise, some tests might fail because there is a separate document-level cache that's ill-defined; see this issue.

  • Partial content tests (a.k.a. Range requests) are not specified in Fetch; tests are included here for interest only.

  • Some browser caches will behave differently when reloading / shift-reloading, despite the cache mode staying the same.

  • At the moment, Edge doesn't appear to using HTTP caching in conjunction with Fetch at all.