mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-04 16:15:25 +00:00
13 lines
309 B
JavaScript
13 lines
309 B
JavaScript
function handleRequest(request, response) {
|
|
var body = "initial";
|
|
|
|
try {
|
|
body = request.getHeader("X-Request");
|
|
} catch(e) {
|
|
body = "request.getHeader() failed! Exception: " + e;
|
|
}
|
|
|
|
response.setHeader("Cache-Control", "max-age=3600");
|
|
response.bodyOutputStream.write(body, body.length);
|
|
}
|