懒加载图片是通过http请求获取,我后台设置response响应头Cache-Control后,懒加载失效了?为什么?
前台:data-lazyload="http://127.0.0.1:8080/sharepair/app/image/getImageUrl?imgName=' +picInfo.picName + '.png"/>
后台:response.setContentType("image/png");
response.setHeader("Cache-Control", "PUBLIC, max-age=60, must-revalidate");
response.setDateHeader("expires", System.currentTimeMillis() + 1000 * 60);
0 个回复