Skip to content

Commit

Permalink
Update the Cache-Control header
Browse files Browse the repository at this point in the history
  • Loading branch information
clementprdhomme committed Dec 9, 2020
1 parent ff4c131 commit f7c680d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion api/tiles/soc-experimental-timeseries.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const CONCENTRATION_RAMP = `

const sendImage = (res, z, data) => {
res.set('Content-Type', 'image/png');
if (z < 5) {
if (+z <= 5) {
res.set('Cache-Control', 'public,max-age=604800');
}
return res.send(Buffer.from(data));
Expand Down
2 changes: 1 addition & 1 deletion api/tiles/soc-stock-future-period.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const RAMP = `

const sendImage = (res, z, data) => {
res.set('Content-Type', 'image/png');
if (z < 5) {
if (+z <= 5) {
res.set('Cache-Control', 'public,max-age=604800');
}
return res.send(Buffer.from(data));
Expand Down
2 changes: 1 addition & 1 deletion api/tiles/soc-stock-historic-period.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const RAMP = {

const sendImage = (res, z, data) => {
res.set('Content-Type', 'image/png');
if (z < 5) {
if (+z <= 5) {
res.set('Cache-Control', 'public,max-age=604800');
}
return res.send(Buffer.from(data));
Expand Down
2 changes: 1 addition & 1 deletion api/tiles/soc-stock-recent-timeseries.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const RAMP = `

const sendImage = (res, z, data) => {
res.set('Content-Type', 'image/png');
if (z < 5) {
if (+z <= 5) {
res.set('Cache-Control', 'public,max-age=604800');
}
return res.send(Buffer.from(data));
Expand Down

0 comments on commit f7c680d

Please sign in to comment.