mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
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:
parent
912402364a
commit
63013cc565
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue