diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index 12a92e91..643c7cf5 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -3142,8 +3142,9 @@ class HttpCli(object): ext = "~" + ext[-9:] # chrome cannot handle more than ~2000 unique SVGs - chrome = " rv:" not in self.ua - mime, ico = self.ico.get(ext, not exact, chrome) + # so url-param "raster" returns a png/webp instead + # (useragent-sniffing kinshi due to caching proxies) + mime, ico = self.ico.get(ext, not exact, "raster" in self.uparam) lm = formatdate(self.E.t0, usegmt=True) self.reply(ico, mime=mime, headers={"Last-Modified": lm}) diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index 6102a866..03fb2339 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -4847,6 +4847,8 @@ var thegrid = (function () { ihref = SR + '/.cpr/ico/' + ext; } ihref += (ihref.indexOf('?') > 0 ? '&' : '?') + 'cache=i&_=' + ACB; + if (CHROME) + ihref += "&raster"; html.push('