Make it possible to force reload.
This commit is contained in:
parent
5a8966abb3
commit
44f74400c7
1 changed files with 5 additions and 0 deletions
|
|
@ -471,6 +471,11 @@ public class AlbumServlet
|
|||
}
|
||||
|
||||
boolean notModified(HttpServletRequest req, File f) {
|
||||
|
||||
String cacheControl = req.getHeader("Cache-Control");
|
||||
if ("no-cache".equals(cacheControl)) {
|
||||
return false;
|
||||
}
|
||||
long reqDate = req.getDateHeader("If-Modified-Since");
|
||||
long fDate = f.lastModified();
|
||||
System.out.println("reqDate is " + new Date(reqDate) + " fDate is " + new Date(fDate) + " " + req.getHeader("If-Modified-Since"));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue