Skip to content

Commit fa87a0c

Browse files
zakdoekKyleAMathews
authored andcommitted
Fix[gatsby-plugin-offline]: Ommit per-page-manifest preload link (#14718)
1 parent ea16be0 commit fa87a0c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/gatsby-plugin-offline/src/gatsby-ssr.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ export const onPreRenderHTML = ({
1313
type === `link` &&
1414
props.as === `fetch` &&
1515
props.rel === `preload` &&
16-
props.href.startsWith(`/static/d/`)
16+
(props.href.startsWith(`/static/d/`) ||
17+
props.href.startsWith(`/page-data/`))
1718
)
1819
)
1920

0 commit comments

Comments
 (0)