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 committed 2024-10-25 22:32:58 +00:00
1 parent 912402364a
commit 63013cc565
1 file changed
+1 -5
+1 -5
View File
@@ -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)