Skip to content

Workbox strategies uncaught no-response #332

Open
@kikrasnozhenov

Description

Version 1.0.0

Hi everyone,

Error:

workbox-strategies.prod.js:1 Uncaught (in promise) no-response: no-response :: [{"url":"https://username:somePassword@somedomainname.com/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!

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions