[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [metrics-web/master] Don't set Last-Modified header on stats.html response.
commit 02597bad1fc06194ae1da6a22da26f3f6397a40a
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date: Mon Dec 9 15:33:14 2013 +0100
Don't set Last-Modified header on stats.html response.
---
src/org/torproject/ernie/web/research/ResearchStatsServlet.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/org/torproject/ernie/web/research/ResearchStatsServlet.java b/src/org/torproject/ernie/web/research/ResearchStatsServlet.java
index ab1c231..2ca93a3 100644
--- a/src/org/torproject/ernie/web/research/ResearchStatsServlet.java
+++ b/src/org/torproject/ernie/web/research/ResearchStatsServlet.java
@@ -39,7 +39,7 @@ public class ResearchStatsServlet extends HttpServlet {
public long getLastModified(HttpServletRequest request) {
File statsFile = this.determineStatsFile(request);
if (statsFile == null || !statsFile.exists()) {
- return 0L;
+ return -1L;
} else {
return statsFile.lastModified();
}
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits