brotli: set header to timeout if timeout was immmediate (0)
This commit is contained in:
parent
0e185c67a5
commit
a649d21549
|
@ -44,8 +44,8 @@ class BrotliCache(object):
|
|||
if self.timeout > 0:
|
||||
t.join(self.timeout)
|
||||
encbody = self.redis.get(cache_key)
|
||||
if not encbody:
|
||||
response.headers.set('x-brotli-cache', 'TIMEOUT')
|
||||
if not encbody:
|
||||
response.headers.set('x-brotli-cache', 'TIMEOUT')
|
||||
else:
|
||||
response.headers.set('x-brotli-cache', 'LOCKED')
|
||||
if encbody:
|
||||
|
|
Loading…
Reference in New Issue