mirror of
https://github.com/9001/copyparty.git
synced 2025-10-05 19:42:29 +02:00
stop cloudflare from jumbling up png/svg icons;
chrome crashes if there's more than 2000 unique SVGs on one page, so there was serverside useragent-sniffing to determine if the icon should be an svg or a raster however since the useragent is not in our vary, cloudflare wouldn't see the difference and cache everything equally, meaning most folders would display a random mix of png and svg thumbnails move browser detection to the clientside to ensure unique URLs
This commit is contained in:
parent
8a38101e48
commit
43ee6b9f5b
2 changed files with 5 additions and 2 deletions
|
@ -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('<a href="' + ohref + '" ref="' + ref +
|
||||
'"' + ac + ' ttt="' + esc(name) + '"><img style="height:' +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue