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
This commit is contained in:
ed 2024-10-25 22:32:58 +00:00
parent 912402364a
commit 63013cc565

View file

@ -793,11 +793,7 @@ class HttpCli(object):
def k304(self) -> bool: def k304(self) -> bool:
k304 = self.cookies.get("k304") k304 = self.cookies.get("k304")
return ( return k304 == "y" or (self.args.k304 == 2 and k304 != "n")
k304 == "y"
or (self.args.k304 == 2 and k304 != "n")
or ("; Trident/" in self.ua and not k304)
)
def _build_html_head(self, maybe_html: Any, kv: dict[str, Any]) -> None: def _build_html_head(self, maybe_html: Any, kv: dict[str, Any]) -> None:
html = str(maybe_html) html = str(maybe_html)