We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bd38c8 commit c17d832Copy full SHA for c17d832
src/lazyFile.ts
@@ -166,8 +166,8 @@ export class LazyUint8Array {
166
const url = this.rangeMapper(0, 0).url;
167
// can't set Accept-Encoding header :( https://stackoverflow.com/questions/41701849/cannot-modify-accept-encoding-with-fetch
168
xhr.open("HEAD", url, false);
169
- // maybe this will help it not use compression?
170
- xhr.setRequestHeader("Range", "bytes=" + 0 + "-" + this._chunkSize);
+ // // maybe this will help it not use compression?
+ // xhr.setRequestHeader("Range", "bytes=" + 0 + "-" + 1e12);
171
xhr.send(null);
172
if (!((xhr.status >= 200 && xhr.status < 300) || xhr.status === 304))
173
throw new Error("Couldn't load " + url + ". Status: " + xhr.status);
0 commit comments