cykod / Quintus

HTML5 Game Engine
http://html5quintus.com
GNU General Public License v2.0
1.41k stars 401 forks source link

XHR request failed, when appcache is used #148

Open tujlaky opened 9 years ago

tujlaky commented 9 years ago

If you use appcache, and make XHR requests to cached resources while offline, older webkit browsers finish the request with a statusCode of 0.

http://alistapart.com/article/application-cache-is-a-douchebag#section20

If I try to load a sprite's json file, I got error, because only response code 200 is allowed in this line: https://github.com/cykod/Quintus/blob/master/lib/quintus.js#L1757

I tested it with Android 2.3.7.