Search Issue Tracker
Fixed in 2018.1.X
Fixed in 5.6.X, 2017.1.X, 2017.2.X, 2017.3.X
Votes
0
Found in
5.6.2f1
Issue ID
937594
Regression
No
[WebGL] <Build>.data.unityweb is not cached in the Indexed DB
Steps to reproduce:
1) Download attached project 'WebGLCache.zip' and open in Unity
2) Build attached project
3) Install XAMPP
Download XAMPP from here: https://www.apachefriends.org/index.html
4) Create folder and rename it to 'Cache' in C:\xampp\htdocs
5) Add built project in recently created 'Cache'' folder
6) Launch XAMPP's Control Panel
7) Start Apache module
8) Open Firefox browser and enter: http://localhost/Cache/index.html
9) In the browser, click on Developer settings >> Web Console(Firefox)
If you can't see the Storage tab, click on the gear icon and enable Storage developer tool(Firefox)
10) In the Storage tab, expand whole Indexed DB tab
11) Click on FILE_DATA folder
There is no cached <Build>.data.unityweb in the Indexed DB
Expected result: There should be <Build>.data.unityweb cached in the Indexed DB
Actual result: There is no cached data of <Build>.data.unityweb in the Indexed DB (check attached image 'NoStoredData.unityweb.png')
Reproduced with:
5.6.3f1, 2017.1.0p3, 2017.2.0b6, 2071.3.0a3
Tested with:
Mozilla Firefox 54.0.1
Google Chrome Version 60.0.3112.90 (Official Build) (64-bit)
Fixed in: 2018.1.0a3
Comments (3)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
jiten12345
Jan 15, 2019 18:55
Thanks,
That really works in Chrome and Mozilla Firefox after upgrading to Unity 2018.3.1f1.However for us it looks like it fails in case of Safari Browser.Just looking for a workaround.
I am using Safari version (11.1.2).Unfortunately, it's unable to cache the "WebGL.data.unityweb" of size 48MB and the Asset Bundles.The large data file is downloading every time.
Does the above fix applicable for Safari also ?
I am getting the following errors in console (Safari Browser):
1.[UnityCache] indexedDB database could not be opened
2.[UnityCache] WebGL.wasm.framework.unityweb' successfully downloaded but not stored in the indexedDB cache due to the error: Error: indexedDB access denied
3.IndexedDB is not available. Data will not persist in cache and PlayerPrefs will not be saved.
How would I be able to find a way out?
Thanks
jiten12345
Jan 15, 2019 18:50
Thanks,
That really works in Chrome and Mozilla Firefox after upgrading to Unity 2018.3.1f1.However for us it looks like it fails in case of Safari Browser.Just looking for a workaround.
I am using Safari version (11.1.2).Unfortunately, it's unable to cache the "WebGL.data.unityweb" of size 48MB and the Asset Bundles.The large data file is downloading every time.
Does the above fix applicable for Safari also ?
I am getting the following errors in console (Safari Browser):
1.[UnityCache] indexedDB database could not be opened
2.[UnityCache] WebGL.wasm.framework.unityweb' successfully downloaded but not stored in the indexedDB cache due to the error: Error: indexedDB access denied
3.IndexedDB is not available. Data will not persist in cache and PlayerPrefs will not be saved.
How would I be able to find a way out?
Thanks
jiten12345
Jan 15, 2019 18:49
Thanks,
That really works in Chrome and Mozilla Firefox after upgrading to Unity 2018.3.1f1.However for us it looks like it fails in case of Safari Browser.Just looking for a workaround.
I am using Safari version (11.1.2).Unfortunately, it's unable to cache the "WebGL.data.unityweb" of size 48MB and the Asset Bundles.The large data file is downloading every time.
Does the above fix applicable for Safari also ?
I am getting the following errors in console (Safari Browser):
1.[UnityCache] indexedDB database could not be opened
2.[UnityCache] WebGL.wasm.framework.unityweb' successfully downloaded but not stored in the indexedDB cache due to the error: Error: indexedDB access denied
3.IndexedDB is not available. Data will not persist in cache and PlayerPrefs will not be saved.
How would I be able to find a way out?
Thanks