Each of these buttons will trigger a CORS-enabled HTTP request to fetch a list of videos from the YouTube Data API. One button makes a valid request, and the other makes an invalid request that always trigger an error response (due to an invalid API key). The service worker takes care of translating the error response into a valid fallback response, which is treated by the host page exactly like any other valid response.