Efficiency improvements for #5977

Improve efficiency for non wrapped response for cache-contro
This commit is contained in:
gregw 2021-02-23 13:06:50 +01:00
parent c0b0f80567
commit fdb54fa2fb
1 changed files with 2 additions and 2 deletions

View File

@ -836,10 +836,10 @@ public class ResourceService
r.putHeaders(content, contentLength, _etags);
HttpFields fields = r.getHttpFields();
if (_acceptRanges && !fields.contains(HttpHeader.ACCEPT_RANGES))
fields.put(ACCEPT_RANGES);
fields.add(ACCEPT_RANGES);
if (_cacheControl != null && !fields.contains(HttpHeader.CACHE_CONTROL))
fields.put(_cacheControl);
fields.add(_cacheControl);
}
else
{