Efficiency improvements for #5977
Improve efficiency for non wrapped response for cache-contro
This commit is contained in:
parent
c0b0f80567
commit
fdb54fa2fb
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue