Skip to content

Commit

Permalink
fetching script should be also cached
Browse files Browse the repository at this point in the history
  • Loading branch information
dgostencnik committed Apr 8, 2020
1 parent adfa70e commit 7752df4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layer/AbstractSentinelHubV3Layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export class AbstractSentinelHubV3Layer extends AbstractLayer {
throw new Error('This layer does not support Processing API (unknown dataset)');
}
if (this.evalscriptUrl && !this.evalscript) {
const response = await axios.get(this.evalscriptUrl);
const response = await axios.get(this.evalscriptUrl, { responseType: 'text', useCache: true });
const evalscriptV3 = await this.convertEvalscriptToV3(response.data);
this.evalscript = evalscriptV3;
}
Expand Down

0 comments on commit 7752df4

Please sign in to comment.