Skip to content

Commit

Permalink
Merge pull request #590 from pgiraud/cache_busting_update
Browse files Browse the repository at this point in the history
simplify cache busting
  • Loading branch information
Pierre GIRAUD committed May 16, 2015
2 parents a6cd688 + 0acfebf commit b0822de
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 26 deletions.
7 changes: 1 addition & 6 deletions osmtm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@
group_membership,
)

from .git_cache_buster import (
GitCacheBuster,
)


def main(global_config, **settings):
""" This function returns a Pyramid WSGI application.
Expand Down Expand Up @@ -57,8 +53,7 @@ def main(global_config, **settings):
session_factory = UnencryptedCookieSessionFactoryConfig('itsasecret')
config.set_session_factory(session_factory)

config.add_static_view('static', 'static', cache_max_age=3600,
cachebust=GitCacheBuster())
config.add_static_view('static', 'static', cachebust=True)
config.add_route('home', '/')
config.add_route('home_json', '/projects.json')
config.add_route('about', '/about')
Expand Down
20 changes: 0 additions & 20 deletions osmtm/git_cache_buster.py

This file was deleted.

1 change: 1 addition & 0 deletions osmtm/static/js/lib/locales/bootstrap-datepicker.en.js

0 comments on commit b0822de

Please sign in to comment.