##// END OF EJS Templates
statics: use cache_max_age with 24H to cache loaded static assets by browsers.
marcink -
r466:1daa1b79 default
parent child Browse files
Show More
@@ -314,7 +314,8 b' def includeme_first(config):'
314 config.add_view(favicon_redirect, route_name='favicon')
314 config.add_view(favicon_redirect, route_name='favicon')
315 config.add_route('favicon', '/favicon.ico')
315 config.add_route('favicon', '/favicon.ico')
316
316
317 config.add_static_view('_static', path='rhodecode:public')
317 config.add_static_view(
318 '_static', path='rhodecode:public', cache_max_age=3600 * 24)
318
319
319
320
320 def wrap_app_in_wsgi_middlewares(pyramid_app, config):
321 def wrap_app_in_wsgi_middlewares(pyramid_app, config):
General Comments 0
You need to be logged in to leave comments. Login now