Skip to content

Commit aed621a

Browse files
committed
increase max age of options response
1 parent f9cc5e2 commit aed621a

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)