mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged HEAD-BUG-FIX (5.1/Cloud) to HEAD (5.1/Cloud)
104025: Merged 5.0.N (5.0.2) to HEAD-BUG-FIX (5.1/Cloud) 103975: MNT-13938: Public API does not set any HTTP caching headers git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@104120 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -80,6 +80,10 @@ public abstract class AbstractResourceWebScript extends ApiWebScript implements
|
||||
Object toSerialize = respons.get("toSerialize");
|
||||
ContentInfo contentInfo = (ContentInfo) respons.get("contentInfo");
|
||||
|
||||
// set caching (MNT-13938)
|
||||
res.setCache(ApiWebScript.CACHE_NEVER);
|
||||
|
||||
// set content info
|
||||
setContentInfoOnResponse(res, contentInfo);
|
||||
|
||||
if (toSerialize != null)
|
||||
|
Reference in New Issue
Block a user