Skip to content

Commit

Permalink
Efficiency improvements for #5977
Browse files Browse the repository at this point in the history
Improve efficiency for non wrapped response for cache-contro
  • Loading branch information
gregw committed Feb 23, 2021
1 parent fdb54fa commit 16241d7
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -836,7 +836,7 @@ protected void putHeaders(HttpServletResponse response, HttpContent content, lon
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);
Expand Down

0 comments on commit 16241d7

Please sign in to comment.