Java 缓存控件在Firefox中不工作

Java 缓存控件在Firefox中不工作,java,spring,spring-mvc,firefox,cache-control,Java,Spring,Spring Mvc,Firefox,Cache Control,我想为每个资源文件设置expire头。我尝试使用资源映射缓存周期 <resources mapping="/resources/**" location="/WEB-INF/resources/" cache-period="86400"/> 谁能帮帮我 我对Lotus Notes和web表单也有类似的问题。Firefox只是没有遵循与其他所有人一样的规则来进行缓存控制 我的解决方案是在前端使用javascript来模拟我试图通过缓存控制实现的功能 HttpServletR

我想为每个资源文件设置expire头。我尝试使用资源映射缓存周期

<resources mapping="/resources/**" location="/WEB-INF/resources/" cache-period="86400"/>

谁能帮帮我

我对Lotus Notes和web表单也有类似的问题。Firefox只是没有遵循与其他所有人一样的规则来进行缓存控制

我的解决方案是在前端使用javascript来模拟我试图通过缓存控制实现的功能

    HttpServletResponse httpResponse = (HttpServletResponse) response;
    httpResponse.setHeader("Cache-Control", "no-cache, no-store, must-revalidate"); 
    httpResponse.setHeader("Pragma", "no-cache"); 
    httpResponse.setDateHeader("Expires", System.currentTimeMillis() + 604800000L);         
    chain.doFilter(request, response