1 of 9

Response sources

Hastily made by @annevk

2 of 9

Possible fetch (request) sources

  • Navigation -> fetch
    • Address bar
    • <iframe>
    • ...
  • Fetch
    • JavaScript fetch()
    • HTML <img>
    • CSS background-image: url(...);
    • ...

3 of 9

Potential response source I

  • HTML’s “list of available images”
    • Only applicable to image fetches
    • Enables synchronous(!) switching of images

4 of 9

Potential response source II

  • The “preload cache”

5 of 9

Potential response source III

  • The service worker
    • Has access to storage APIs (e.g., Cache, Indexed DB)
    • Can generate responses with script
    • 🎉

6 of 9

Potential response source IV

  • HTTP cache
    • I suspect y’all are familiar

7 of 9

Potential response source V

  • HTTP/2 server push cache

8 of 9

Potential response source VI

  • The network!

9 of 9

Apologies for any errors