summaryrefslogtreecommitdiffstats
path: root/dom/serviceworkers/test/importscript.sjs
blob: e075eadd8729e2db8e7f4a8faadef52ec5b6143a (plain)
1
2
3
4
5
6
7
8
9
10
11
function handleRequest(request, response) {
  if (request.queryString == "clearcounter") {
    setState("counter", "");
  } else if (!getState("counter")) {
    response.setHeader("Content-Type", "application/javascript", false);
    response.write("callByScript();");
    setState("counter", "1");
  } else {
    response.write("no cache no party!");
  }
}