Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Commit

Permalink
fix(static): cache error responses for 5 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
trieloff committed May 3, 2019
1 parent 2c1ac18 commit 3173cea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions static.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ function error(message, code = 500) {
headers: {
'Content-Type': 'text/html',
'X-Static': 'Raw/Static',
'Cache-Control': 'max-age=300',
},
body: `${message}`,
};
Expand Down

0 comments on commit 3173cea

Please sign in to comment.