Skip to content

Commit 4247842

Browse files
committed
fix(static): cache error responses for 5 minutes
1 parent ed5a887 commit 4247842

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/openwhisk/static.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ function error(message, code = 500) {
4444
headers: {
4545
'Content-Type': 'text/html',
4646
'X-Static': 'Raw/Static',
47+
'Cache-Control': 'max-age=300',
4748
},
4849
body: `${message}`,
4950
};

0 commit comments

Comments
 (0)