Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Set longer cache max age for static assets

Scott Peshakf4bc1915d7bf
diff --git a/wger/settings_global.py b/wger/settings_global.py
index a48ab7104..045ee35bc 100644
--- a/wger/settings_global.py
+++ b/wger/settings_global.py
@@ -316,7 +316,7 @@ if USE_S3:
AWS_STORAGE_BUCKET_NAME = os.getenv('AWS_STORAGE_BUCKET_NAME')
AWS_DEFAULT_ACL = 'public-read'
AWS_S3_CUSTOM_DOMAIN = os.getenv('WGER_CDN_DOMAIN')
- AWS_S3_OBJECT_PARAMETERS = {'CacheControl': 'max-age=86400'}
+ AWS_S3_OBJECT_PARAMETERS = {'CacheControl': 'max-age=31557600'}
# s3 static settings
AWS_LOCATION = 'static'
STATIC_URL = 'https://%s/%s/' % (AWS_S3_CUSTOM_DOMAIN, AWS_LOCATION)