]> source.dussan.org Git - vaadin-framework.git/commitdiff
Changed default resource cache time to 1 hour (#2586)
authorArtur Signell <artur.signell@itmill.com>
Mon, 15 Mar 2010 07:08:06 +0000 (07:08 +0000)
committerArtur Signell <artur.signell@itmill.com>
Mon, 15 Mar 2010 07:08:06 +0000 (07:08 +0000)
svn changeset:11857/svn branch:6.3

src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java

index d3243fab73b3c69813037de018a6e0ed5c801b0e..199866cf89d1a911f4352483da99c28269c0cd02 100644 (file)
@@ -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.