Jump to content

IndexedDB not storing anything


Baker Xiao
 Share

Recommended Posts

I was trying to follow https://doc.babylonjs.com/tutorials/caching_resources_in_indexeddb and created manifest files for all my assets. I then used AssetsManager.addMeshTask to load some .babylon files which do have manifest files. The engine did request those manifest files and got them successfully from my server. However nothing is being stored in IndexedDB when I looked into my browser storage. Are we missing anything?

Link to comment
Share on other sites

i tested it yesterday with the babylonjs 3.1. It works as expected. ( Firefox 55.0.3 on macOS 10.12.6 )

My Server returen a application/octet-stream. Can you attach your manifest file here? Whats Browser and OS do you use. 

How big are the Files you want to cache? 

Link to comment
Share on other sites

I'm on Google Chrome 60.0 Mac OS 10.12.6. 

 

All my manifest files have the same content as this one:

{
  "version": 1,
  "enableSceneOffline": true,
  "enableTexturesOffline": true,
}

 

They all got HTTP 200, however nothing is stored into IndexedDB, and every time it still goes to fetch the real babylon files over the wire. The babylon files are really small, about 50KB each. 

Link to comment
Share on other sites

Press F12 in Chrome and tell us if you've got errors in the console.

If not, go to the application tab and check the IndexedDB part to see if your files are stored or not.

Do you run Chrome in Incognito? If so, it disables IDB.

Can you please also test https://www.babylonjs.com/demos/sponza and check if it works in your machine. This demo is using IndexedDB and has been tested successfully on several machines 

Link to comment
Share on other sites

hey, can you please try it without the last comma after enableTexturesOffline?

12 hours ago, Baker Xiao said:

I'm on Google Chrome 60.0 Mac OS 10.12.6. 

 

All my manifest files have the same content as this one:


{
  "version": 1,
  "enableSceneOffline": true,
  "enableTexturesOffline": true,
}

 

They all got HTTP 200, however nothing is stored into IndexedDB, and every time it still goes to fetch the real babylon files over the wire. The babylon files are really small, about 50KB each. 

{ "version": 1, "enableSceneOffline": true, "enableTexturesOffline": true }

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...