Skip to content
This repository has been archived by the owner on Feb 3, 2022. It is now read-only.

Serviceworker not caching #25

Open
thomas-thaulow opened this issue Aug 1, 2018 · 2 comments
Open

Serviceworker not caching #25

thomas-thaulow opened this issue Aug 1, 2018 · 2 comments

Comments

@thomas-thaulow
Copy link

Having issue with serviceworker actually showing on page, but not caching anything. So offline mode wont work or anything. Any idea what it might be? Running M 1.9.3

@tgerulaitis
Copy link
Member

@CiaraCode , is your block html cache disabled in Magento?

Every time Magento block html cache is cleared, the service worker gets regenerated and clears its cache. So if the block html cache is disabled, it will never cache anything.

I would visit /serviceworker.js several times and check if the version variable changes - if it does, then it's a problem with Magento regenerating the file every time you request it.

Cheers,
Tomas

@thomas-thaulow
Copy link
Author

All caching is enabled. When I refresh cache, version changed in serviceworker... :/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants