You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.
So I am having inconsistent issues getting this to actually cache anything. Some weeks it works, some it doesn't. Some weeks it works it chrome but not firefox, some weeks it doesn't.
I'm trying really hard to debug this, but I am failing.
I've noticed that too on rare occasions, and I believe it's due to refreshing/quitting the browser in the middle of the install event handler, leading to the properly named cache being created but not populated. Right now we cheat a little bit in the install handler and just check to see whether a cache with the appropriate name exists, without checking to see whether it's empty or not, but that should be changed to check the contents and work around this issue.
(And FWIW, whenever you want to start fresh with a service worker during testing, I recommend using Chrome Incognito windows. You can verify in a new Incognito window that everything gets added to the cache properly there.)
For anyone else:
Settings > Content settings > All cookies and site data... > Remove your site from the list
Then open your site, and don't immediately close/refresh. ;)
I guess I didn't bother doing this in the first place since I pressed the trash icon on the service worker in dev tools and expected that to do the same thing.
So I am having inconsistent issues getting this to actually cache anything. Some weeks it works, some it doesn't. Some weeks it works it chrome but not firefox, some weeks it doesn't.
I'm trying really hard to debug this, but I am failing.
Here's the error:
And the worker:
Here's the angular service where it's registered:
https://github.com/aeharding/financier/blob/master/src/scripts/services/offline.js
And here's the gulpfile:
https://github.com/aeharding/financier/blob/master/gulpfile.js#L143
Lastly, here's the site:
https://staging.financier.io
Any help is appreciated. I've tried everything I can think of. Sorry I couldn't narrow it down further.
The text was updated successfully, but these errors were encountered: