mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-05-02 14:23:47 +03:00
Merge pull request #217 from ka7eh/ka7eh
Fixed a bug with escaped spaces in Cache-Control.
This commit is contained in:
commit
0f8f564790
|
@ -75,9 +75,14 @@ INSTALLED_APPS = ('collectfast', ) + INSTALLED_APPS
|
||||||
|
|
||||||
# AWS cache settings, don't change unless you know what you're doing:
|
# AWS cache settings, don't change unless you know what you're doing:
|
||||||
AWS_EXPIRY = 60 * 60 * 24 * 7
|
AWS_EXPIRY = 60 * 60 * 24 * 7
|
||||||
|
|
||||||
|
# TODO See: https://github.com/jschneier/django-storages/issues/47
|
||||||
|
# Revert the following and use str after the above-mentioned bug is fixed in
|
||||||
|
# either django-storage-redux or boto
|
||||||
AWS_HEADERS = {
|
AWS_HEADERS = {
|
||||||
'Cache-Control': 'max-age=%d, s-maxage=%d, must-revalidate' % (
|
'Cache-Control': str.encode(
|
||||||
AWS_EXPIRY, AWS_EXPIRY)
|
'max-age=%d, s-maxage=%d, must-revalidate' % (
|
||||||
|
AWS_EXPIREY, AWS_EXPIREY))
|
||||||
}
|
}
|
||||||
|
|
||||||
# See: https://docs.djangoproject.com/en/dev/ref/settings/#static-url
|
# See: https://docs.djangoproject.com/en/dev/ref/settings/#static-url
|
||||||
|
|
Loading…
Reference in New Issue
Block a user