nuxt / create-nuxt-app

Create Nuxt.js App in seconds.
MIT License
3.49k stars 429 forks source link

Uncaught (in promise) TypeError: Failed to execute 'put' on 'Cache': Vary header contains * #850

Closed mashirozx closed 3 years ago

mashirozx commented 3 years ago

When I first run the code, browser console shows this error message:

Uncaught (in promise) TypeError: Failed to execute 'put' on 'Cache': Vary header contains *
    at Object.put (workbox-core.prod.js:1)
put @ workbox-core.prod.js:1

My config:

create-nuxt-app v3.7.1
✨  Generating Nuxt.js project in nuxt-job-1
? Project name: nuxt-job-1
? Programming language: JavaScript
? Package manager: Yarn
? UI framework: None
? Nuxt.js modules:
? Linting tools: (Press <space> to select, <a> to toggle all, <i> to invert selection)
? Testing framework: None
? Rendering mode: Universal (SSR / SSG)
? Deployment target: Static (Static/Jamstack hosting)
? Development tools:
? What is your GitHub username? mashirozx
? Version control system: Git

🎉  Successfully created project nuxt-demo
danielroe commented 3 years ago

@mashirozx Would you provide a reproduction please?

mashirozx commented 3 years ago

OK, here: https://github.com/mashirozx/nuxt-debug

Environment info: Edition Windows 10 Pro Version 20H2 Installed on ‎2020/‎8/‎22 OS build 19042.1165 Experience Windows Feature Experience Pack 120.2212.3530.0

PowerShell 7.1.4 Nodejs v14.17.5 Yarn 1.22.11

\Chrom Version 92.0.4515.159 (Official Build) (64-bit)

mashirozx commented 3 years ago

image

danielroe commented 3 years ago

@mashirozx That error is being triggered from an existing service worker you've installed on localhost:3000 - nothing to do with the repro you've shared. (Note that it doesn't replicate in codesandbox for that reason.) Make sure to clear your service workers in chrome://serviceworker-internals/

Hope that helps 😊

mashirozx commented 3 years ago

Oh, yeah, it's the reason, a chrome plugin

image

Thanks 😊