Sunday, 5 September 2021

Android Chrome not cache big file even fetching by force-cache

I want to load and cache a big data file from the server. The dict.json file is about 30MB big.

fetch('/data/dict.json', {cache: "force-cache"})

In Desktop Chrome, it works as expected.

However, in android chrome, it still load the file everytime from the server, not from the cache when I refresh the page.

How to make it get cached in android chrome?



from Android Chrome not cache big file even fetching by force-cache

No comments:

Post a Comment