We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae95d66 commit 629b30fCopy full SHA for 629b30f
packages/gatsby-plugin-preload-fonts/src/__tests__/index.test.js
@@ -49,6 +49,7 @@ const mockPageRequests = requests => {
49
}
50
},
51
url: () => currentPath,
52
+ setCacheEnabled: () => {},
53
54
55
return { close: jest.fn(), newPage: () => Promise.resolve(page) }
packages/gatsby-plugin-preload-fonts/src/prepare/index.js
@@ -60,6 +60,7 @@ export async function main() {
60
61
const browser = await puppeteer.launch({ args: process.argv.slice(2) })
62
const page = await browser.newPage()
63
+ page.setCacheEnabled(false)
64
page.on(`requestfinished`, req => {
65
if (req.url().match(/(socket\.io|commons\.js)/)) return
66
0 commit comments