Efficiency improvements for #5977

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

View File

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