Writing /volume1/Web/Public/dokuwiki/data/log/deprecated/2024-11-14.log failed
文書の過去の版を表示しています。
Writing /volume1/Web/Public/dokuwiki/data/log/deprecated/2024-11-14.log failed
Cache Control
you can control the cache of JSP pages with extending RequestProcessor.class
protected void processContent(HttpServletRequest request, HttpServletResponse response) { if (request.getServletPath().equals("/order/orderGear.do")){ logger.info( request.getServletPath() + " is CACHE ON!"); if (logger.isDebugEnabled()) { logger.debug("CACHE ON"); } response.setHeader("Cache-control", "Store"); response.setHeader("Expires", "1"); response.setHeader("Pragma", "Cache"); } else { logger.info( request.getServletPath() + " is CACHE OFF!"); if(logger.isDebugEnabled()) { logger.debug("CACHE OFF"); } response.setHeader("Cache-control", "No-cache"); response.setHeader("Expires", "0"); response.setHeader("Pragma", "No-cache"); return; } super.processContent(request, response); }
コメント