1 2 3 4 5 6 7
"use strict"; onfetch = function (event) { if (event.request.url.indexOf("target.txt") != -1) { event.respondWith(fetch("intercepted.txt")); } };