mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 02:41:09 +00:00
* Improve failed ETag error message [#427]
This commit is contained in:
@@ -407,7 +407,9 @@ export class FetchSource implements Source {
|
||||
// some storage systems are misbehaved (Cloudflare R2)
|
||||
if (resp.status === 416 || (etag && newEtag && newEtag !== etag)) {
|
||||
this.mustReload = true;
|
||||
throw new EtagMismatch(etag);
|
||||
throw new EtagMismatch(
|
||||
`Server returned non-matching ETag ${etag} after one retry. Check browser extensions and servers for issues that may affect correct ETag headers.`
|
||||
);
|
||||
}
|
||||
|
||||
if (resp.status >= 300) {
|
||||
|
||||
Reference in New Issue
Block a user