Caching resources using asset manager

Hi all :slight_smile:

I want to load assets quickly and i using asset manager for load my glb file. to solve it I want to use a caching method. I have read this documentation : Optimizing Using Cached Resources | Babylon.js Documentation but I still don’t understand how to implement. does anyone have an example of how to apply it using an assets manager ?

It will be cached under the hood automatically if you enable database storage

1 Like

Hi @Deltakosh what do you mean indexeddb? and how do i activate it?

Just follow the guidance of the doc you linked :slight_smile:

1 Like

This caching methods works only for .babylon scenes and don’t supports .gltf scenes? Is it right?

1 Like

I’ve tried it, but it doesn’t work

Well it should. Can you repro with a simple example in the PG so I can have a look?

1 Like

I can’t make PG :slightly_frowning_face: : , my code is too complex, it will be difficult to enter it in PG, but I have a question about the manifest file, in the documentation it says that the manifest file must be named in relation to the scene. does that mean the name should be given the same name as the model file name?

my ask is more to reproduce not with your code but with a simple example
The name of the manifest should be the name of your glb

1 Like

sorry I misunderstood, this is my PG : Babylon.js Playground,
about the manifest file, where should I put it? Is it in the same folder as the glb file?

Thanks @Deltakosh , have found a way, my mistake was that I was wrong in naming the manifest file

1 Like