aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-07-05 23:14:07 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-07-05 23:14:22 +1200
commit6e3f4e0f61f4f25f8f34337de4a3141d5a2d4b7d (patch)
tree0fce865317bf526b632775fcba4c6d2022657f1f /src/org
parentd5dfbc2b8b70209e40231f5da27809548b4c8853 (diff)
downloadtrackermap-server-6e3f4e0f61f4f25f8f34337de4a3141d5a2d4b7d.tar.gz
trackermap-server-6e3f4e0f61f4f25f8f34337de4a3141d5a2d4b7d.tar.bz2
trackermap-server-6e3f4e0f61f4f25f8f34337de4a3141d5a2d4b7d.zip
Implement simple caching
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/web/WebServer.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/org/traccar/web/WebServer.java b/src/org/traccar/web/WebServer.java
index 4dd37f4cc..83ead7ad8 100644
--- a/src/org/traccar/web/WebServer.java
+++ b/src/org/traccar/web/WebServer.java
@@ -105,6 +105,7 @@ public class WebServer {
resourceHandler.setWelcomeFiles(new String[] {"debug.html", "index.html"});
resourceHandler.setMinMemoryMappedContentLength(-1); // avoid locking files on Windows
} else {
+ resourceHandler.setCacheControl("max-age=3600,public");
resourceHandler.setWelcomeFiles(new String[] {"release.html", "index.html"});
}
handlers.addHandler(resourceHandler);