Skip to content

Commit 52fe8fb

Browse files
committed
use cache-control consistently in templates
1 parent fd681d2 commit 52fe8fb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/lib/templates.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export const location = makeTemplate({
4242
filename: 'location_target',
4343
response_headers: [
4444
['Expires', 100000],
45+
['Cache-Control', 'max-age=100000']
4546
['Last-Modified', 0],
4647
['Date', 0]
4748
]
@@ -51,6 +52,7 @@ export const contentLocation = makeTemplate({
5152
filename: 'content_location_target',
5253
response_headers: [
5354
['Expires', 100000],
55+
['Cache-Control', 'max-age=100000']
5456
['Last-Modified', 0],
5557
['Date', 0]
5658
]
@@ -62,6 +64,7 @@ export const varySetup = makeTemplate({
6264
],
6365
response_headers: [
6466
['Expires', 5000],
67+
['Cache-Control', 'max-age=5000'],
6568
['Last-Modified', -3000],
6669
['Date', 0],
6770
['Vary', 'Foo']

0 commit comments

Comments
 (0)