huggingface / gsplat.js

JavaScript Gaussian Splatting library.
MIT License
1.26k stars 78 forks source link

feat: add force caching option to reduce costly downloads of scene data #42

Closed jeyemwey closed 6 months ago

jeyemwey commented 6 months ago

This PR introduces an optional parameter to the LoadAsync functions to use the force-cache option of fetch.

force-cache uses a local cache if available, regardless if the version is stale. This can introduce issues if the file on the server changes, but makes the development with stable scenes much quicker.

The parameter is optional and turned off per default. Existing applications should work like before.

dylanebert commented 6 months ago

Sounds good, thanks!