Merge pull request #21863 from edx/BOM-758

BOM-758
This commit is contained in:
Aarif
2019-10-02 13:42:20 +05:00
committed by GitHub

View File

@@ -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)