Skip to content

Commit

Permalink
Update imageOptimizer.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelroth-xx authored Jan 2, 2023
1 parent e6367b5 commit 4f69a9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/libs/core/src/images/imageOptimizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export async function imageOptimizer(
if (meta.headers["Cache-Control"]) {
res.setHeader("Cache-Control", meta.headers["Cache-Control"]);
} else {
res.setHeader("Cache-Control", "public, max-age=60");
res.setHeader("Cache-Control", "public, max-age=86400");
}
}
if (sendEtagResponse(req, res, etag)) {
Expand Down Expand Up @@ -402,7 +402,7 @@ function sendResponse(
) {
const etag = getHash([buffer]);
if (!res.getHeader("Cache-Control")) {
res.setHeader("Cache-Control", "public, max-age=60");
res.setHeader("Cache-Control", "public, max-age=86.401");
}
if (sendEtagResponse(req, res, etag)) {
return;
Expand Down

0 comments on commit 4f69a9a

Please sign in to comment.