forked from LBRYCommunity/lbry-sdk
Merge pull request #129 from kimihiro64/patch-2
Proper no-cache for web-ui index.html
This commit is contained in:
commit
3cd9d6a604
1 changed files with 2 additions and 0 deletions
|
@ -226,6 +226,8 @@ class LBRYindex(resource.Resource):
|
|||
return resource.Resource.getChild(self, name, request)
|
||||
|
||||
def render_GET(self, request):
|
||||
request.setHeader('cache-control','no-cache, no-store, must-revalidate')
|
||||
request.setHeader('expires', '0')
|
||||
return static.File(os.path.join(self.ui_dir, "index.html")).render_GET(request)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue