# HG changeset patch # User Marcin Kuzminski # Date 2016-07-19 16:01:18 # Node ID 1daa1b79ce713c3e2ec0380bac5da2aed2f710c2 # Parent 0b0a67204fc43c1b476e95b1deec4a035bccd89a statics: use cache_max_age with 24H to cache loaded static assets by browsers. diff --git a/rhodecode/config/middleware.py b/rhodecode/config/middleware.py --- a/rhodecode/config/middleware.py +++ b/rhodecode/config/middleware.py @@ -314,7 +314,8 @@ def includeme_first(config): config.add_view(favicon_redirect, route_name='favicon') config.add_route('favicon', '/favicon.ico') - config.add_static_view('_static', path='rhodecode:public') + config.add_static_view( + '_static', path='rhodecode:public', cache_max_age=3600 * 24) def wrap_app_in_wsgi_middlewares(pyramid_app, config):