Skip to content
Snippets Groups Projects
Unverified Commit 6e13e061 authored by Aarif's avatar Aarif Committed by GitHub
Browse files

Merge pull request #21863 from edx/BOM-758

BOM-758
parents 7be6acb8 e6470fb9
Branches
Tags release-2020-06-18-12.21
No related merge requests found
......@@ -211,7 +211,7 @@ class StaticContentServer(object):
newrelic.agent.add_custom_parameter('contentserver.cacheable', True)
response['Expires'] = StaticContentServer.get_expiration_value(datetime.datetime.utcnow(), cache_ttl)
response['Cache-Control'] = b"public, max-age={ttl}, s-maxage={ttl}".format(ttl=cache_ttl)
response['Cache-Control'] = u"public, max-age={ttl}, s-maxage={ttl}".format(ttl=cache_ttl)
elif is_locked:
if newrelic:
newrelic.agent.add_custom_parameter('contentserver.cacheable', False)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment