summaryrefslogtreecommitdiffstats
path: root/dom/tests/mochitest/ajax/offline/changing1Hour.sjs
diff options
context:
space:
mode:
Diffstat (limited to 'dom/tests/mochitest/ajax/offline/changing1Hour.sjs')
-rw-r--r--dom/tests/mochitest/ajax/offline/changing1Hour.sjs8
1 files changed, 8 insertions, 0 deletions
diff --git a/dom/tests/mochitest/ajax/offline/changing1Hour.sjs b/dom/tests/mochitest/ajax/offline/changing1Hour.sjs
new file mode 100644
index 000000000..2a1035965
--- /dev/null
+++ b/dom/tests/mochitest/ajax/offline/changing1Hour.sjs
@@ -0,0 +1,8 @@
+function handleRequest(request, response)
+{
+ response.setStatusLine(request.httpVersion, 200, "Ok");
+ response.setHeader("Content-Type", "text/plain");
+ response.setHeader("Cache-Control", "max-age=3600");
+
+ response.write(Date.now());
+}