Servlet与缓存

Servlet类

请求缓存:

response.setDateHeader("Expires",System.currentTimeMills()+1000*60*60) ;

刷新缓存:

请求头 If-Modified-Since

服务器 lastModified

请求头 和 服务器 进行比较 决定是否缓存

原文地址:https://www.cnblogs.com/Knuth/p/2507557.html