Skip to content

Getting Failed to execute 'addAll' on 'Cache': Request failed error #161

Description

@vincentwansink

Error in Chrome Console

Uncaught (in promise) TypeError: Failed to execute 'addAll' on 'Cache': Request failed
Promise.then (async)
(anonymous) @ upup.sw.min.js:6
Promise.then (async)
_parseSettingsAndCache @ upup.sw.min.js:6
(anonymous) @ upup.sw.min.js:6

Steps to Reproduce (for bugs)

Currently this is all I have:

<script src="/upup.min.js"></script>
<script>

  //<!--****************************************************************************-->
  //<!--*** Register service worker for offline use
  //<!--****************************************************************************-->

  UpUp.start({
    'content-url': 'offline.htm',
    'assets': [
    ]  
  });
</script>

I removed the assets just to make sure one of my assets wasn't causing the problem, but regardless I had previously confirmed that they all exist. And yes, offline.htm also exists. I have added the following files to the root of my website

  • upup.min.js
  • upup.min.js.map
  • upup.sw.min.js
  • upup.sw.min.js.map

Lighthouse gives me an all green score for PWA requirements, yet I'm still getting this error both in Chrome and Edge. Edge is actually worse because it seems to be stuck in a perpetual "Offline" state, even though it's clearly online, and it's failing to load a couple of my icons and my common.js file though I suspect if I can get upup to play nice with Chrome, Edge will follow suit.

Are there other upup files I need to upload to my server? I can't find any reference to this in the documentation.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

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