Skip to content

Commit

Permalink
Improved cache control headers for errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dangeredwolf committed Sep 10, 2023
1 parent cc4bd45 commit db64d25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ const versionRequest = async (request: IRequest) => {
{
headers: {
...Constants.RESPONSE_HEADERS,
'cache-control': 'max-age=1'
'cache-control': 'max-age=0, no-cache, no-store, must-revalidate',
},
status: 200
}
Expand Down Expand Up @@ -686,7 +686,7 @@ const sentryWrapper = async (event: FetchEvent, test = false): Promise<void> =>
headers: {
...Constants.RESPONSE_HEADERS,
'content-type': 'text/html',
'cache-control': 'max-age=1'
'cache-control': 'max-age=0, no-cache, no-store, must-revalidate'
},
status: 200
});
Expand Down

0 comments on commit db64d25

Please sign in to comment.