зеркало из https://github.com/mozilla/gecko-dev.git
12 строки
358 B
JavaScript
12 строки
358 B
JavaScript
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!");
|
|
}
|
|
}
|