Commit d1e24ca
[Web] Support web indexDB cache for larger model storage (#16733)
* Support IndexDB for Larger model, modify artifact cache template
* Minor formatting
* Rename indexdb to indexeddb
* Modify addToCache and fetchWithCache logics
- We make addToCache not return anything, see new specification
- This allows us to skip downloaded files in fetchNDArrayCache instead of running into DOMException: Key already exists
- Call addToCache in fetchWithCache, so we only need to retrieve afterwards
- Remove cacheOnly for callback, use loading instead (since we separated download and loading)
- Fix responseTostoretype bug in ArtifactCache
* Move all cache related code to artifact_cache
* Fix lint
---------
Co-authored-by: Charlie Ruan <[email protected]>1 parent 81a8506 commit d1e24ca
3 files changed
+423
-155
lines changed
0 commit comments