javascript - Change time allowed for server response in offline.js -
i using offline.js in mobile web project. in specific environment running in, script seems little over-zealous in reporting connection server lost. how go modifying allow server longer time respond?
try set check in offline.options required xhr:
offline.options = { checks : { xhr : { url : function () { return "/favicon.ico?_=" + ((new date()).gettime()); }, timeout : 10000, // change timeout need type : 'head' } } }; check source @ line 28 defaults. can see way set checks under checking header in documentation.
Comments
Post a Comment