Experiments with the Proposed Cross-Origin Storage API in Transformers.js
Transformers.js faces a caching issue: when using the same AI model or Wasm runtime across different websites, the browser downloads and caches them repeatedly due to origin-based cache isolation. The proposed Cross-Origin Storage (COS) API addresses this by identifying files by cryptographic hash rather than URL, enabling secure resource sharing across different origins.
Hugging Face


