syntax_highlight

четверг, 7 июня 2012 г.

AppCache JSON or other network requests not working

Today I've stumbled on the HTML5 AppCache problem - it denied to fetch all my network JSON requests and throws an error like:
GET http://somehost:10001/someapp/data.json - failed
I've tried a lot of variants, editing the manifes file, but none of them succeed. Exept one:
CACHE MANIFEST

#resources to cache
CACHE:
js/json_executor.js

#all other
NETWORK:
*
Should put an asterisk below NETWORK section. It seems like AppCache is using "deny all" strategy when a network request is processed. So what we do here is simply permit all network requests during page loading.

Комментариев нет:

Отправить комментарий