Skip to content

Commit

Permalink
Fixes test
Browse files Browse the repository at this point in the history
Add upstream max-age to optimized image
vercel/next.js#26739
  • Loading branch information
ofhouse committed Aug 17, 2021
1 parent 0623b2a commit fb7dbc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/image-optimizer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ describe('unit', () => {
expect(headers['content-type']).toBe(fixtureResponse['content-type']);
expect(headers['etag']).toBeDefined();
expect(headers['cache-control']).toBe(
'public, max-age=0, must-revalidate'
'public, max-age=123456, must-revalidate'
);

const optimizerPrefix = `external_accept_webp_w-${optimizerParams.w}_q-${optimizerParams.q}_`;
Expand Down

0 comments on commit fb7dbc4

Please sign in to comment.