forked from mirrors/gecko-dev
These are a first-cut of service worker performance tests, just running as vanilla mochitests for now. Bug 1832059 tracks the integration work necessary. Differential Revision: https://phabricator.services.mozilla.com/D177427
7 lines
155 B
JavaScript
7 lines
155 B
JavaScript
"use strict";
|
|
|
|
onfetch = function (event) {
|
|
if (event.request.url.indexOf("target.txt") != -1) {
|
|
event.respondWith(fetch("intercepted.txt"));
|
|
}
|
|
};
|