Richard Connon
Richard Connon

Reputation: 360

Service Worker Cache not storing all files in Array

I am currently working on a project that involves the creation of an offline application with a realitivly big amount of files stored in the cache. (432 to be exact)

As the files needed is dynamic for each user, I have a method that creates the Array and passes it into the service worker. This all works fine and if I simply print the array it contains the full list of files.

The problem arises when I check the cache storage after the everything is loaded, for some reason a total of 49 files is being stored with no promt as to what happened to the rest of the files.

I am using Firefox, and am aware that the cache has unlimited storage with promts after 50mb. The total memory used after storing these 49 files is just under 19mb, so I do not believe it to be a memory issue.

I have searched through Service Worker questions and haven't found anyone experiancing the same issue, so I hope someone out here can help!

Upvotes: 3

Views: 746

Answers (1)

Ray Kim
Ray Kim

Reputation: 1961

As Jeff Posnick said, Chrome Devtools displays 50 entries at a time (0-49). At the bottom, it should say the total number of entries like: Total entries: xxx

Upvotes: 1

Related Questions