summaryrefslogtreecommitdiff
path: root/settings.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-01-21 15:14:44 -0600
committerDan McGee <dan@archlinux.org>2013-01-21 15:14:44 -0600
commitf9252df1138ae388168cf76cb3d654a2abbce4ec (patch)
tree35f86d0dbe2bb0920b10d5409216cb9971d9b497 /settings.py
parenta15d0850af0f766cd895b863f62524f1a1b2fe05 (diff)
Switch to using the cached STATICFILES_STORAGE backend
This should finally let us crank up the Expires: header to far-future values in production since updates to JS and CSS files will take effect immediately. Some minor removals were made from retro stylesheets as they were referencing files that don't actually exist because they were missing from the web archive. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'settings.py')
-rw-r--r--settings.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/settings.py b/settings.py
index 8ed5cb61..dbc06159 100644
--- a/settings.py
+++ b/settings.py
@@ -89,6 +89,9 @@ STATICFILES_DIRS = (
os.path.join(DEPLOY_PATH, 'sitestatic'),
)
+# Static files backend that allows us to use far future Expires headers
+STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.CachedStaticFilesStorage'
+
# Configure where messages should reside
MESSAGE_STORAGE = 'django.contrib.messages.storage.session.SessionStorage'