From 63013cc565631e112584706215839534524a048f Mon Sep 17 00:00:00 2001 From: ed Date: Fri, 25 Oct 2024 22:32:58 +0000 Subject: [PATCH] http 304: k304 obsoleted for ie11 by Vary the Vary header killed caching in all versions of internet explorer so there's no point conditionally enabling k304 for trident anymore --- copyparty/httpcli.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index 862bb018..b3e60e66 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -793,11 +793,7 @@ class HttpCli(object): def k304(self) -> bool: k304 = self.cookies.get("k304") - return ( - k304 == "y" - or (self.args.k304 == 2 and k304 != "n") - or ("; Trident/" in self.ua and not k304) - ) + return k304 == "y" or (self.args.k304 == 2 and k304 != "n") def _build_html_head(self, maybe_html: Any, kv: dict[str, Any]) -> None: html = str(maybe_html)