Skip to content

Commit

Permalink
use cache-control consistently in templates
Browse files Browse the repository at this point in the history
  • Loading branch information
mnot committed Jul 11, 2023
1 parent fd681d2 commit 52fe8fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/lib/templates.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export const location = makeTemplate({
filename: 'location_target',
response_headers: [
['Expires', 100000],
['Cache-Control', 'max-age=100000']
['Last-Modified', 0],
['Date', 0]
]
Expand All @@ -51,6 +52,7 @@ export const contentLocation = makeTemplate({
filename: 'content_location_target',
response_headers: [
['Expires', 100000],
['Cache-Control', 'max-age=100000']
['Last-Modified', 0],
['Date', 0]
]
Expand All @@ -62,6 +64,7 @@ export const varySetup = makeTemplate({
],
response_headers: [
['Expires', 5000],
['Cache-Control', 'max-age=5000'],
['Last-Modified', -3000],
['Date', 0],
['Vary', 'Foo']
Expand Down

0 comments on commit 52fe8fb

Please sign in to comment.