Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workbox strategies uncaught no-response #332

Open
kikrasnozhenov opened this issue Sep 29, 2022 · 0 comments
Open

Workbox strategies uncaught no-response #332

kikrasnozhenov opened this issue Sep 29, 2022 · 0 comments

Comments

@kikrasnozhenov
Copy link

kikrasnozhenov commented Sep 29, 2022

Version 1.0.0

Hi everyone,

Error:

workbox-strategies.prod.js:1 Uncaught (in promise) no-response: no-response :: [{"url":"https://username:[email protected]/static/js/main.7534dcb8.chunk.js","error":{}}]
at o.makeRequest (https://somedomainname.com/workbox-v4.3.1/workbox-strategies.prod.js:1:3983)

We are using this approach to path a basic auth. In incognito works well.

what should we do? I found that nuxt-community had the same issue with their pwa module.
here is a link nuxt-community/pwa-module#176

Here is how we are using your library:

const { override, adjustWorkbox } = require('customize-cra');

module.exports = override(
        ...
	isProduction &&
		adjustWorkbox(wb =>
			Object.assign(wb, {
				navigateFallback: undefined,
				navigateFallbackBlacklist: [],
				include: 'do_not_match_anything',
				skipWaiting: true,
				cacheId: Date.now().toString(),
				runtimeCaching: [
					{
						urlPattern: /\/static\/.*/,
						handler: 'staleWhileRevalidate',
					},
				],
				importWorkboxFrom: 'local',
			}),
		),
                ...
);

Help me, please. Many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant