Fix expires date in CacheHeaders
Jan 1 1990 was a Monday, not a Friday. Change-Id: I16ae708130d4d21e68cf8fad216068000f703a38
This commit is contained in:
@@ -35,7 +35,7 @@ public class CacheHeaders {
|
|||||||
String cc = "no-cache, no-store, max-age=0, must-revalidate";
|
String cc = "no-cache, no-store, max-age=0, must-revalidate";
|
||||||
res.setHeader("Cache-Control", cc);
|
res.setHeader("Cache-Control", cc);
|
||||||
res.setHeader("Pragma", "no-cache");
|
res.setHeader("Pragma", "no-cache");
|
||||||
res.setHeader("Expires", "Fri, 01 Jan 1990 00:00:00 GMT");
|
res.setHeader("Expires", "Mon, 01 Jan 1990 00:00:00 GMT");
|
||||||
res.setDateHeader("Date", System.currentTimeMillis());
|
res.setDateHeader("Date", System.currentTimeMillis());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user