summaryrefslogtreecommitdiffstats
path: root/dom/serviceworkers/test/importscript.sjs
blob: 6d177a734182081fe4be831ddc02aa77697b0478 (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!");
  }
}