From f9252df1138ae388168cf76cb3d654a2abbce4ec Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 21 Jan 2013 15:14:44 -0600 Subject: 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 --- settings.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'settings.py') 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' -- cgit v1.2.3-55-g3dc8