Merged V3.0 to HEAD

12303: Merged V2.2 to V3.0
      12302: Merged V2.1 to V2.2
         12300: Fix for ETWOONE-413 - JSF client DownloadContent URLs are now cachable by a forward proxy (such as Apache mod_proxy+mod_cache)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@12304 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2008-12-08 14:51:53 +00:00
parent 723ce93191
commit c7e3e758b8

View File

@@ -259,6 +259,8 @@ public abstract class BaseDownloadContentServlet extends BaseServlet
} }
} }
res.setDateHeader("Last-Modified", modified.getTime()); res.setDateHeader("Last-Modified", modified.getTime());
res.setHeader("Cache-Control", "must-revalidate");
res.setHeader("ETag", "\"" + Long.toString(modified.getTime()) + "\"");
} }
if (attachment == true) if (attachment == true)