saleor / saleor-storefront

A GraphQL-powered, NextJs-based, PWA storefront for Saleor. IMPORTANT: This project is [DEPRECATED] in favor of saleor/react-storefront soon to become our default demo and storefront starter pack.
https://demo.saleor.io/
BSD 3-Clause "New" or "Revised" License
769 stars 672 forks source link

Service Worker Returns "bad-precaching-response" category/[slug] #1052

Closed crewstein closed 3 years ago

crewstein commented 3 years ago

What I'm trying to achieve

Build & run the project.

Steps to reproduce the problem

  1. npm run build:start

What I expected to happen

Project to run without errors from service worker.

Screenshots

image image

As seen from the images, it won't pass the slug argument but I honestly don't see why since other pages are built and run properly.

boreBoar commented 3 years ago

Hi! Could you tell me how you solved this?

albertphil commented 3 years ago

@thisispatso Hi! Could you share the solution how do you solved this issue?

crewstein commented 3 years ago

Hi, to be fair I cannot fully remember but I think that this was happening due to running the service worker within the dev environment. Try disabling it while developing and only enable it on prod.