From 4822ec0f3589159eef0bfeaa0af585c8b006731a Mon Sep 17 00:00:00 2001 From: Kuninori Morimoto Date: Thu, 7 Jul 2022 15:18:29 +0900 Subject: scripts: Don't use cache on HTML Frame Web browser will use cached page if it is using Frame (Menu, Summary, etc), but it is not good for PeriJect user. To avoid the cache patch, this patch try to 1) remove frame html every make, 2) add "?xxx" after file name to make web browser think it's a different file. It works well on Chrome, but not sure on other browser. Signed-off-by: Kuninori Morimoto --- scripts/html_task.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts/html_task.py') diff --git a/scripts/html_task.py b/scripts/html_task.py index e47bb99..4aa2d29 100755 --- a/scripts/html_task.py +++ b/scripts/html_task.py @@ -74,11 +74,11 @@ class periject_html(html_base.myhtml): with html("tr"): html("td").print(os.path.relpath(v.file, self.top())) html("td").print(html("a", {"target":"summary", - "href":self.relpath("html/{}.html".format(status), dir)}).text(status)) + "href":self.relpath("html/{}.html?summary".format(status), dir)}).text(status)) html("td").print(html("a", {"target":"summary", - "href":self.relpath("html/{}.html".format(team), dir)}).text(team)) + "href":self.relpath("html/{}.html?summary".format(team), dir)}).text(team)) html("td").print(html("a", {"target":"summary", - "href":self.relpath("html/{}.html".format(assignee), dir)}).text(assignee)) + "href":self.relpath("html/{}.html?summary".format(assignee), dir)}).text(assignee)) html("td").print(v.get_data("key")) #-------------------- -- cgit v1.2.3