Skip to content

Commit 57625cd

Browse files
SamyPesseconico974
andauthored
Apply suggestions from code review
Co-authored-by: conico974 <[email protected]>
1 parent 0f330d5 commit 57625cd

File tree

1 file changed

+2
-1
lines changed
  • packages/gitbook/src/app/sites/static/[mode]/[siteURL]/[siteData]/~gitbook/embed/script.js

1 file changed

+2
-1
lines changed

packages/gitbook/src/app/sites/static/[mode]/[siteURL]/[siteData]/~gitbook/embed/script.js/route.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ export const dynamic = 'force-static';
1010
const EMBEDDABLE_RESPONSE_HEADERS = {
1111
'Access-Control-Allow-Origin': '*',
1212
'Access-Control-Allow-Methods': 'GET, OPTIONS',
13+
'Access-Control-Allow-Headers': '*',
1314
'Cross-Origin-Resource-Policy': 'cross-origin',
14-
'Cache-Control': 'public, max-age=86400, stale-while-revalidate=604800',
15+
'Cache-Control': 'public, s-maxage=86400, stale-while-revalidate=604800',
1516
};
1617

1718
/**

0 commit comments

Comments
 (0)