summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/service-workers/service-worker/resources/import-scripts-404-after-update.js
blob: b569346035ac11c557a1e19d6bf9ba8b90597539 (plain)
1
2
3
4
5
6
// This worker imports a script that returns 200 on the first request and 404
// on the second request. The resulting body also changes each time it is
// requested.
const params = new URLSearchParams(location.search);
const key = params.get('Key');
importScripts(`update-worker.py?Key=${key}&Mode=not_found`);