From 7c8233d964507ab9b37706f066f7744dde744c99 Mon Sep 17 00:00:00 2001 From: tdro Date: Mon, 10 Apr 2023 14:14:10 -0400 Subject: static/js/refresh: Drop # & ? To bypass browser behaviour --- static/js/refresh.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'static') diff --git a/static/js/refresh.ts b/static/js/refresh.ts index 2033ea3..88710fa 100644 --- a/static/js/refresh.ts +++ b/static/js/refresh.ts @@ -13,7 +13,7 @@ } function update() { - const url = self.location.href; + const url = self.location.href.split("#")[0].split("?")[0]; check(url, "HEAD", function (request) { const local = document.querySelector('meta[name="last-modified"]').content; const remote = request.getResponseHeader("last-modified") || local; -- cgit v1.2.3