Description
in WebApplication I have
MyWebApplication.java
protected WebResponse newWebResponse(final WebRequest webRequest, final HttpServletResponse httpServletResponse) { return new ServletWebResponse((ServletWebRequest) webRequest, httpServletResponse) { @Override public void disableCaching() { setDateHeader("Date", Time.now()); setDateHeader("Expires", Time.START_OF_UNIX_TIME); setHeader("Cache-Control", "no-store, no-cache"); } }; }
but i have to disable buffering with:
getRequestCycleSettings().setBufferResponse(false);
becouse
HeaderBufferingWebResponse and BufferedWebResponse doesnt call disableCaching of my WebResponse