From 28df48c74371fbe34e67269a5fa089169bd0da11 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Mon, 15 Mar 2010 07:08:06 +0000 Subject: [PATCH] Changed default resource cache time to 1 hour (#2586) svn changeset:11857/svn branch:6.3 --- .../terminal/gwt/server/AbstractApplicationServlet.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java b/src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java index d3243fab73..199866cf89 100644 --- a/src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java +++ b/src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java @@ -1177,13 +1177,13 @@ public abstract class AbstractApplicationServlet extends HttpServlet implements if (lastModifiedTime > 0) { response.setDateHeader("Last-Modified", lastModifiedTime); /* - * The browser is allowed to cache for 5 minutes without checking if + * The browser is allowed to cache for 1 hour without checking if * the file has changed. This forces browsers to fetch a new version * when the Vaadin version is updated. This will cause more requests * to the servlet than without this but for high volume sites the * static files should never be served through the servlet. */ - response.setHeader("Cache-Control", "max-age: 900"); + response.setHeader("Cache-Control", "max-age: 3600"); } // Write the resource to the client. -- 2.39.5