cache headers
*/
package com.hack23.cia.web.impl.ui.application;
+import java.io.IOException;
+
+import javax.servlet.ServletException;
import javax.servlet.annotation.WebInitParam;
import javax.servlet.annotation.WebServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
import org.eclipse.jetty.servlet.DefaultServlet;
/**
"/VAADIN/themes/cia/*","/VAADIN/themes/valo/shared/img/*" }, loadOnStartup = 1, initParams = {
@WebInitParam(name = "gzip", value = "true"),
@WebInitParam(name = "etags", value = "true"),
- @WebInitParam(name = "cacheControl", value = "max-age=86400, public"),
+ @WebInitParam(name = "cacheControl", value = "public, max-age=31536000"),
@WebInitParam(name = "precompressed", value = "true")
}, asyncSupported = true)
public class ResourceServlet extends DefaultServlet {
/** The Constant serialVersionUID. */
private static final long serialVersionUID = 1L;
+ @Override
+ protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
+ response.setHeader("Pragma", "cache");
+ super.service(request, response);
+ }
+
}
\ No newline at end of file
