| Index: gae/config.py
|
| diff --git a/gae/config.py b/gae/config.py
|
| index 5f55e2fd72ab898564c957a316d319b0c04f69ca..e241262a6d4b42df423e5de43c29a93a007a088a 100644
|
| --- a/gae/config.py
|
| +++ b/gae/config.py
|
| @@ -8,7 +8,9 @@ IS_DEV_APP_SERVER = os.environ['SERVER_SOFTWARE'].startswith('Development')
|
|
|
| DEFAULT = {
|
| 'bucket': '/gs/chrome-devtools-frontend/%s',
|
| - 'max_age': 7 * 24 * 60, # in seconds
|
| + 'hash_path': 'hash/%s',
|
| + 'max_age': 7 * 24 * 60 * 60, # in seconds
|
| + 'meta_path': 'meta/%s',
|
| 'revision_path': 'revs/%s',
|
| 'version_path': 'vers/%s',
|
| 'zip_path': 'zips/%s.zip',
|
| @@ -21,6 +23,12 @@ class ConfigHelper:
|
| def get_full_path(self, path):
|
| return self.conf['bucket'] % path
|
|
|
| + def get_hash_path(self, hash):
|
| + return self.conf['hash_path'] % hash
|
| +
|
| + def get_meta_path(self, rev):
|
| + return self.conf['meta_path'] % rev
|
| +
|
| def get_max_age(self):
|
| return self.conf['max_age']
|
|
|
|
|