question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
danielroecommented, Sep 7, 2021

@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 😊

0reactions
mashirozxcommented, Sep 7, 2021

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

image

Thanks 😊

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught (in promise) TypeError: Failed to execute 'Cache' on ...
You get this exception when any files which you have mentioned in your cache list return a 404 response. So make sure the...
Read more >
Uncaught (in promise) TypeError: Failed to execute ... - GitHub
Was facing this problem and found it worked by deleting any URLs (in var filesToCache at serviceworker.js) that I don't have in my...
Read more >
Failed to execute 'put' on 'Cache' - WordPress.org
I am getting the below error. Uncaught (in promise) TypeError: Failed to execute 'put' on 'Cache': Partial response (status code 206) is unsupported...
Read more >
PWA Fix - Failed to execute 'Cache' on 'addAll' - AshKeys
If one of the urls mentioned below returns 404 error, then you get Fix: Uncaught (in promise) TypeError: Failed to execute 'Cache' on...
Read more >
Cache.put() - Web APIs | MDN
The put() method of the Cache interface allows key/value pairs to be added to the current Cache object.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found