All Questions
Tagged with service-worker browser-cache
101 questions
0
votes
1
answer
26
views
Cache Storage vs IndexDB for short lived data
I need to handle a 500MB file upload where the user may be redirected to a login page and later return to resume the upload. To store the file temporarily, options like IndexedDB or CacheStorage seem ...
0
votes
0
answers
16
views
PWA works on localhost but not with IP address in React app
I'm developing a React application with PWA (Progressive Web App) functionality, and it works perfectly when I access it via http://localhost:3000. However, when I try to run the application using my ...
1
vote
1
answer
73
views
How can i clear api's response cache after logout while using angular service worker?
I cache api's responses by using angular generated service worker , now i want to clear these caches after user decide to logout for this i made new custom service worker file which listens to ...
1
vote
1
answer
37
views
Remove Service Worker that loads whole website from cache
I developed a new website for a customer, that had previous website running on the same domain. I deployed the site and found out that www. subdomain still shows the previous website, which I later (...
0
votes
1
answer
883
views
Unable to mock Cache service worker API for React/Jest unit test
I'm attempting to test a component that has the following code (shortened) which uses the Service Worker API 'Cache' (https://developer.mozilla.org/en-US/docs/Web/API/Cache), while the code is working ...
3
votes
1
answer
434
views
Is it possible to use service worker cache with unpoly or htmx?
I'm a quite frustrated programmer for the usage of single page applications and I'm trying to find equally good alternatives using less technologies.
One could be unpoly.
Unpoly has a very efficient ...
0
votes
0
answers
307
views
How to cache files built by Vue in service worker (not manually)
I have this Vue application that I wish to cache all files using service workers but every time I build the application to deploy and test, the filename for the js files created by vue are different:
...
0
votes
0
answers
371
views
Can different domain name share the same Cache Storage
I try to get the Cache Storage resource from other domain name that are both based other server side (like http://192.168.0.203:3050/ and http://127.0.0.1:5000/ they are connect in intranet).
I want ...
1
vote
0
answers
62
views
Service worker - Storage Usage is not decreased after caches deletion
All works fine with install , activate lifecycle when i change the version and click skipwaiting.
Old caches deleted succefully from Cache Storage and Usage Storage decreased as expected.
Somewhere in ...
0
votes
0
answers
466
views
how do i cache the large files on the browser to make the loading time faster
Im trying to store model and js files in cache storage using service workers to make the loading time fast but the cache is not being stored and fetched from the cache storage,when I change the ...
2
votes
0
answers
878
views
Dynamic Caching in NextJs app using Service Worker
I'm trying to dynamically cache pages on the browser, but what is happening is, even if I don't cache a page, and call it in offline mode, the page is loaded.
The limitCache function also doesn't ...
0
votes
1
answer
41
views
Installed web app shows different version than in browser
When I load matchflix.ch on my phone, the installed app shows a different version than when I open the site in the phone browser. How can this be?
Details
I know that a service worker is in place for ...
1
vote
1
answer
913
views
Workbox: how to remove a request from the cache
I'm using staleWhileRevalidate Workbox v3 strategy for all of my API Get calls. However, sometimes I want to remove a particular request from the cache at runtime.
Example: I have a yes/no state that ...
0
votes
1
answer
729
views
Expire create-react-app service worker cache from users browsers
I had previously created a website for my band on thescratch.ie using create-react-app and hosted this using S3 and Cloudfront. I recently replaced the react site using Shopify instead and thescratch....
1
vote
0
answers
487
views
django PWA serviceworker Failed to execute 'addAll' on 'Cache': Request failed
Uncaught (in promise) TypeError: Failed to execute 'addAll' on 'Cache': Request failed
serviceworker.js:1
Above is the error from my dev tools console upon launching a django progressive web app. ...