Google News
logo
JavaScript IndexedDB - Interview Questions
What is the reason a user cannot open an IndexedDB database based on versioning?
If the current user database has a higher version than the one specified in the open call, for example, if the present DB version is 3 and we try to open(...2), an error generates, and openRequest.onerror is called. That's unusual, but it can happen if a visitor loads outdated JavaScript code through a proxy cache. So, while the code is ancient, his database is brand new.
Advertisement