forked from LBRYCommunity/lbry-sdk
Proper no-cache for web-ui index.html
This commit is contained in:
parent
0841aad07a
commit
0b8437fa12
1 changed files with 2 additions and 0 deletions
|
@ -226,6 +226,8 @@ class LBRYindex(resource.Resource):
|
||||||
return resource.Resource.getChild(self, name, request)
|
return resource.Resource.getChild(self, name, request)
|
||||||
|
|
||||||
def render_GET(self, 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)
|
return static.File(os.path.join(self.ui_dir, "index.html")).render_GET(request)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue