Skip to content

Commit d200de2

Browse files
authored
Merge pull request #380 from the-hideout/options-max-age-one-day
Increase max age of options response
2 parents e830061 + fd6674c commit d200de2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ export default {
204204
const optionsResponse = new Response(null, {
205205
headers: {
206206
'cache-control': 'public, max-age=2592000',
207-
'Access-Control-Max-Age': '600',
207+
'Access-Control-Max-Age': '86400',
208208
},
209209
});
210210
setCors(optionsResponse, graphQLOptions.cors);

plugins/plugin-option-method.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default function useOptionMethod() {
77
const optionsResponse = new Response(null, {
88
headers: {
99
'cache-control': 'public, max-age=2592000',
10-
'Access-Control-Max-Age': '600',
10+
'Access-Control-Max-Age': '86400',
1111
},
1212
});
1313
//setCors(optionsResponse, graphQLOptions.cors);

0 commit comments

Comments
 (0)