/**
         * 禁用浏览器缓存通过Cache-Control、pragma、expires
         *  
         */
        response.setHeader("Cache-Control","no-cache");
        response.setHeader("pragma", "no-cache");
        response.setDateHeader("expires", -1);

也可以在主页使用meta标签

禁用浏览器缓存Cache-Control、pragma、expires

响应头的介绍

禁用浏览器缓存Cache-Control、pragma、expires

相关文章:

  • 2022-12-23
  • 2021-10-19
  • 2021-11-14
  • 2021-11-24
  • 2022-01-29
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-14
相关资源
相似解决方案