Check for S3_USE_CACHE_CONTROL boolean

This commit is contained in:
Hannes Ljungberg
2013-06-11 01:41:35 +02:00
parent 30190f7715
commit c07be84a57
+1 -1
View File
@@ -226,6 +226,6 @@ class FlaskS3(object):
if app.config['USE_S3']:
app.jinja_env.globals['url_for'] = url_for
if 'S3_USE_CACHE_CONTROL' and 'S3_CACHE_CONTROL' in app.config:
if app.config['S3_USE_CACHE_CONTROL'] and 'S3_CACHE_CONTROL' in app.config:
cache_control_header = app.config['S3_CACHE_CONTROL']
app.config['S3_HEADERS']['Cache-Control'] = cache_control_header