Proper no-cache for web-ui index.html

This commit is contained in:
kimihiro64 2016-08-17 22:34:20 -05:00 committed by GitHub
parent 0841aad07a
commit 0b8437fa12

View file

@ -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)