Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I have a page which implements a cache manifest so it can be loaded offline.

This page also executes a script which sends an AJAX request to the same server/domain the original page came from.

On the first page the load, when loading from the server, the AJAX works as expected.

But when the page is loaded from the manifest the AJAX request fails.

In chrome I get network error 101 and a http status of 0

In IE 10 I get the download of the specified resource has failed, Network Error 0x2 The system cannot find the file specified. -2146697208

Is there a trick I'm missing in regards to allowing this page to access server resources using AJAX?

P.S. I've used Fiddler to monitor HTTP traffic and neither browser appear to be sending the request when it fails.

Kind Regards,

Steve
Posted
Updated 20-Mar-13 23:21pm
v2

1 solution

I've encountered same problem and didn't figure out, that could be related to AppCache. Thanks to this post I've managed to find solution: my app.cachemanifest file contained only "CACHE:" section, so any request to resource that is not listed in that section failed with stupid error message. Once I've added
NETWORK:
*

to the cache manifest file the problem is gone!
Sorry for bad English.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900