summaryrefslogtreecommitdiffstats
path: root/dom/serviceworkers/test/pref/intercept_nonexistent_file_sw.js
blob: ab0f1d572de9337da3df5e7bf2eff9cf229bd6d8 (plain)
1
2
3
4
5
onfetch = function (e) {
  if (e.request.url.match(/this_file_does_not_exist.txt$/)) {
    e.respondWith(new Response("intercepted"));
  }
};