Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Restored far-future expires header for static resources in ux2.
  • Loading branch information
hathawsh committed May 1, 2012
1 parent 6164136 commit caee8e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion karl/application.py
Expand Up @@ -26,7 +26,8 @@ def configure_karl(config, load_zcml=True):
if not static_rev: if not static_rev:
static_rev = _guess_static_rev() static_rev = _guess_static_rev()
config.registry.settings['static_rev'] = 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.include('bottlecap')
config.add_renderer('.pt', ux2_metarenderer_factory) config.add_renderer('.pt', ux2_metarenderer_factory)
config.registry.registerUtility(FormishZPTMetaRenderer(), IFormishRenderer) config.registry.registerUtility(FormishZPTMetaRenderer(), IFormishRenderer)
Expand Down

0 comments on commit caee8e2

Please sign in to comment.