I'm developing a desktop SaaS app that relies heavily on local browser caching, using IndexedDB. This is to reduce server load. This is a part of the business strategy.<p>I am making IndexedDB a requirement to use the app. IndexedDB is available on 97% of all browsers. If IndexedDB support is not found, I will show a popup.<p>Is this reasonable? Do you thinks users would make a fuss? Are there any corporate policies that disable the local cache, or clear it when the browser closes?
I don’t see a problem with this - but have a think what the outcome is for the user if they don’t have it. Can they use the app without local cache? Is there functionality impacted?
I’d suggest looking into localForage instead of indexeddb directly I found it easier.<p>Edit: also maybe look into private mode (incognito) as that probably clears cache on exit
Are you working with 3D? If so, you should look into Google's Cache Storage API.<p><a href="https://web.dev/cache-api-quick-guide/" rel="nofollow">https://web.dev/cache-api-quick-guide/</a>