Skip to content

Commit

Permalink
force cache on some DHM requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank R Thomsen committed Oct 17, 2024
1 parent 9f0b851 commit d4da2fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ function getTerrainGeoTIFF(stac_item, auth, resolution = 0.05, sizeX = 300) {
url += `&width=${ width }`
url += `&bbox=${ bbox[0]},${ bbox[1]},${ bbox[2]},${ bbox[3]}`

return get(url, {}, false)
return get(url, {cache: 'force-cache'}, false)
.then((response) => {
return response.arrayBuffer()
})
Expand Down

0 comments on commit d4da2fa

Please sign in to comment.