mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged V3.2 to HEAD
18437: Fix for issue where thumbnails were generating requests to repository even for cachable data - and fixed incorrect ETag header set by StreamContent WebScripts git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@18438 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -382,8 +382,8 @@ public class StreamContent extends AbstractWebScript
|
||||
throw new WebScriptException(HttpServletResponse.SC_NOT_FOUND, "Unable to locate content for node ref " + nodeRef + " (property: " + propertyQName.toString() + ")");
|
||||
}
|
||||
|
||||
// Stream the cotent
|
||||
streamContentImpl(req, res, reader, attach, modified, String.valueOf(modifiedSince), attachFileName);
|
||||
// Stream the content
|
||||
streamContentImpl(req, res, reader, attach, modified, String.valueOf(modified.getTime()), attachFileName);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -549,6 +549,7 @@ public class StreamContent extends AbstractWebScript
|
||||
Cache cache = new Cache();
|
||||
cache.setNeverCache(false);
|
||||
cache.setMustRevalidate(true);
|
||||
cache.setMaxAge(0L);
|
||||
cache.setLastModified(modified);
|
||||
cache.setETag(eTag);
|
||||
res.setCache(cache);
|
||||
|
Reference in New Issue
Block a user