编写过滤器
这里主要提供了js,css缓存
如果想要的话,自己可以直接添加图片的映射
package com.foo.filter;import org.apache.log4j.Logger; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.Enumeration; public class ReplyHeaderFilter implements Filter { static Logger log = Logger.getLogger(ReplyHeaderFilter.class); private String[][] replyHeaders = {