From 0b8437fa12768223e4d2952274b149935f9cee29 Mon Sep 17 00:00:00 2001 From: kimihiro64 Date: Wed, 17 Aug 2016 22:34:20 -0500 Subject: [PATCH] Proper no-cache for web-ui index.html --- lbrynet/lbrynet_daemon/LBRYDaemonServer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lbrynet/lbrynet_daemon/LBRYDaemonServer.py b/lbrynet/lbrynet_daemon/LBRYDaemonServer.py index dc345bff5..c3e22ed3e 100644 --- a/lbrynet/lbrynet_daemon/LBRYDaemonServer.py +++ b/lbrynet/lbrynet_daemon/LBRYDaemonServer.py @@ -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)