Skip to content

Commit

Permalink
Cache-evasion fix for private buckets
Browse files Browse the repository at this point in the history
  • Loading branch information
Tevemadar committed Aug 21, 2023
1 parent 9a13b4b commit ab8ee67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ let atlas;

async function getDescriptor() {
const download = await dpurlget(bucket+"/"+filename);
return fetch(download.url + "?" + Date.now()).then(response => response.json());
return fetch(download.url.includes("?") ? download.url : download.url + "?" + Date.now()).then(response => response.json());
}

async function getTile(section, level, x, y) {
Expand Down

0 comments on commit ab8ee67

Please sign in to comment.