Setup

  1. Run a localhost server on port 8000, you can run one using
    python3 -m http.server 8000
  2. Put a file named logo.png in the same directory as where you started the server

Expected result

This page loads a script that registers a service worker (in sw.js), which captures all fetch requests. This page loads a logo.png from a localhost server running on 8000.