From 6e3f4e0f61f4f25f8f34337de4a3141d5a2d4b7d Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 5 Jul 2017 23:14:07 +1200 Subject: Implement simple caching --- src/org/traccar/web/WebServer.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/org/traccar/web') 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); -- cgit v1.2.3