mirror of
https://github.com/SickGear/SickGear.git
synced 2024-11-30 16:33:37 +00:00
Fixed bug in cache controller
This commit is contained in:
parent
42f88b3b3f
commit
c309e8afc9
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ class CacheController(object):
|
|||
return
|
||||
|
||||
if self.sess.cache_auto and ('cache-control' not in resp.headers or 'Cache-Control' not in resp.headers):
|
||||
cache_max_age = int(self.sess.cache_max_age) or 900
|
||||
cache_max_age = int(self.sess.cache_max_age or 900)
|
||||
headers = {'Cache-Control': 'public,max-age=%d' % int(cache_max_age)}
|
||||
resp.headers.update(headers)
|
||||
|
||||
|
|
Loading…
Reference in a new issue