diff options
author | James Moger <james.moger@gitblit.com> | 2013-07-19 10:46:16 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2013-07-19 10:50:32 -0400 |
commit | a7db5748622e1b322b67fbbd72aed4e6efff7690 (patch) | |
tree | 90e5ff60ee365da5b32388cfd790382672dbc232 /src/main/java/com/gitblit/LogoServlet.java | |
parent | 0bfd34316b5903c29f93b352f0aa8e8cdce51cad (diff) | |
download | gitblit-a7db5748622e1b322b67fbbd72aed4e6efff7690.tar.gz gitblit-a7db5748622e1b322b67fbbd72aed4e6efff7690.zip |
Implemented optional page caching
Diffstat (limited to 'src/main/java/com/gitblit/LogoServlet.java')
-rw-r--r-- | src/main/java/com/gitblit/LogoServlet.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/com/gitblit/LogoServlet.java b/src/main/java/com/gitblit/LogoServlet.java index c8820ed3..823e464c 100644 --- a/src/main/java/com/gitblit/LogoServlet.java +++ b/src/main/java/com/gitblit/LogoServlet.java @@ -76,6 +76,7 @@ public class LogoServlet extends HttpServlet { contentType = "image/png";
}
response.setContentType(contentType);
+ response.setHeader("Cache-Control", "public, max-age=3600, must-revalidate");
OutputStream os = response.getOutputStream();
byte[] buf = new byte[4096];
int bytesRead = is.read(buf);
|