Browse files

Restored far-future expires header for static resources in ux2.

  • Loading branch information...
1 parent 6164136 commit caee8e2814971f04c2b317db0eeedd2cad4ed6bd @hathawsh hathawsh committed May 1, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 karl/application.py
View
3 karl/application.py
@@ -26,7 +26,8 @@ def configure_karl(config, load_zcml=True):
if not static_rev:
static_rev = _guess_static_rev()
config.registry.settings['static_rev'] = static_rev
- config.add_static_view('/static/%s' % static_rev, 'karl.views:static')
+ config.add_static_view('/static/%s' % static_rev, 'karl.views:static',
+ cache_max_age=60 * 60 * 24 * 365)
config.include('bottlecap')
config.add_renderer('.pt', ux2_metarenderer_factory)
config.registry.registerUtility(FormishZPTMetaRenderer(), IFormishRenderer)

0 comments on commit caee8e2

Please sign in to comment.