protected long getLastModified(HttpServletRequest req) {\r
File file = GitBlit.getFileOrFolder(Keys.web.headerLogo, "${baseFolder}/logo.png");\r
if (file.exists()) {\r
- return file.lastModified();\r
+ return Math.max(lastModified, file.lastModified());\r
} else {\r
return lastModified;\r
}\r
ServletContext context = request.getSession().getServletContext();\r
contentType = context.getMimeType(file.getName());\r
response.setContentLength((int) file.length());\r
- response.setDateHeader("Last-Modified", file.lastModified());\r
+ response.setDateHeader("Last-Modified", Math.max(lastModified, file.lastModified()));\r
is = new FileInputStream(file);\r
} else {\r
// default logo\r