summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/PagesServlet.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/gitblit/PagesServlet.java')
-rw-r--r--src/main/java/com/gitblit/PagesServlet.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/PagesServlet.java b/src/main/java/com/gitblit/PagesServlet.java
index 9516b357..fc71bc50 100644
--- a/src/main/java/com/gitblit/PagesServlet.java
+++ b/src/main/java/com/gitblit/PagesServlet.java
@@ -141,7 +141,6 @@ public class PagesServlet extends HttpServlet {
r.close();
return;
}
- response.setDateHeader("Last-Modified", JGitUtils.getCommitDate(commit).getTime());
String [] encodings = GitBlit.getEncodings();
@@ -226,6 +225,8 @@ public class PagesServlet extends HttpServlet {
try {
// output the content
+ response.setHeader("Cache-Control", "public, max-age=3600, must-revalidate");
+ response.setDateHeader("Last-Modified", JGitUtils.getCommitDate(commit).getTime());
response.getOutputStream().write(content);
response.flushBuffer();
} catch (Throwable t) {