I did a search for net::ERR_CACHE_WRITE_FAILURE and it seems to be related with the browser not being able to cache very large files.
Is your server gzipping and minifying the json? If the file is being served as is, that might help.
You can also try an incognito mode tab to see if it works there.
Hi Diego Thank you
I think you're right looks like it could be something about the size as I found things like this
Link: https://soorajchandran.medium.com/speeding-up-your-website-using-prefetching-techniques-8077058b7418
There is not much info on the internet bout this topic though which I'm surprised
Also, Is there any limit for JSON files? I never heard anything like that on the forums or Manual that there is a size limitation using Json files loaded through Ajax
Is your server gzipping and minifying the JSON? If the file is being served as is, that might help.
Nope, as far I know there isn't any (gzipping or minifying) at least I haven't implemented them when I created the server.
You can also try an incognito mode tab to see if it works there.
I always test in incognito mode so it doesn't save the cache and it fails all the time.
=============================================================================
The good news is that I managed to reproduce the BUG in a new empty project so I can share it.
What I did is try to replicate as many settings as possible that I had on my main project and also I increased the Json File to increase the chance for a failure.
There are no many settings to be honest:
-I use Custome Loader layout
So it starts on the "Menu Layout"
There once it loads the Game it waits 2 secs and moves to the "Game Layou"
-On the Game layout is where I load the Ajax at the start of the layout
Where it shows a text message for if it loaded successfully or not
Console Log Error:
=================================================
So here are the Files:
C3 Project: https://www.dropbox.com/s/l4dccom4ia2oxco/Ajax%20BUG.c3p?dl=0
If you export it by your self then here is the settings that I use when exporting as HTML
====================================
Or here is the Zip ready
https://www.dropbox.com/s/6usggrd2q30c78p/Ajax%20BUG.zip?dl=0
I would really appreciate it if someone can confirm the bug so we can eliminate that is from my server
Thank you
Steps To Reproduce:
Load the zip to your website
1-Open chrome in incognito mode
2-Go to the URL wait until it rich the "Game Layout"
If it shows "Ajax Loaded Successfully!!!!!!!!!" then you need to close the tab and open a new one and try again until it shows
"Errorrrrrrr Ajax Failed!!!!!!!!" in Red
For me, it fails every time but you may need to try many times
Also one more thing important, this problem is not only Chrome related as the error occurs when I test on the iPhones Browser swell.