|author||Dan McGee <email@example.com>||2013-01-21 15:14:44 -0600|
|committer||Dan McGee <firstname.lastname@example.org>||2013-01-21 15:14:44 -0600|
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 <email@example.com>
Diffstat (limited to 'settings.py')
1 files changed, 3 insertions, 0 deletions
diff --git a/settings.py b/settings.py
index 8ed5cb61..dbc06159 100644
@@ -89,6 +89,9 @@ STATICFILES_DIRS = (
+# 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'