Babylon.js: Add an option to disable checking manifest but keep IndexedDB offline support

Created on 14 Nov 2018  路  4Comments  路  Source: BabylonJS/Babylon.js

This is kind of related to #4207 and #3117 but we want to keep IndexedDB offline support

For our IndexedDB offline mode, we don't need .manifest files at all because all our URL are immutable, they embed a version number and a hash (this is a good practice commonly used in Web industry).

For example all our immutable URLs looks like (the hash is not required but we still use it)

https://domain.com/project/v1.0.0/foo.hash.ext

We actually only provide .manifest files to make babylonjs happy, but we don't use .manifest files, they are all the same and never changes (because our URL are immutable).

Can you please add an option to disable .manifest check but keep IndexedDB offline support?

This will remove useless .manifest HTTP requests 馃槈

help wanted in progress

All 4 comments

I will be happy to provide a PR if needed

Please :)

Does

Database.IDBStorageEnabled = true;
engine.enableOfflineSupport = true;  //(enabled by default)
engine.disableManifestCheck = true;

do the job @deltakosh ?

you are so right. This is already enough :)

Was this page helpful?
0 / 5 - 0 ratings