-3

I am creating a html5 web app. In that web app Contents are loaded dynamically from the XML feed. The feed XML has list of image URLs. I added that URLs in the cache.manifest file to support offline access. In that list of URLs if one URL is giving 404, because of that caching is not working how to solve this issue.

Raja
  • 77
  • 1
  • 10
  • 1
    Put the missing image where you say it should be or stop saying it should be where it isn't. – Quentin Jul 12 '11 at 15:13
  • putting the missing image is fine.In the manifest file looks like below # Add the images in to the cache /webapp/icon.png /webapp/startup.png /webapp/draft/bg_pattern.png /webapp/draft/close.png if the close button is not there in the path whole caching is not working. but the other images are there in the path.because of one image url 404 whole offline mechanisam should not fail. how to solve this. – Raja Jul 12 '11 at 15:23
  • Please note that code pasted into comment boxes is unreadable; use the [edit] link to improve your question. Thanks. – sarnold Jul 13 '11 at 09:08
  • possible duplicate of [Problem While Doing html5 webapp cache](http://stackoverflow.com/questions/6677813/problem-while-doing-html5-webapp-cache) – robertc Jul 13 '11 at 23:41
  • Please consider this question now. – Raja Apr 17 '12 at 12:47

1 Answers1

2

Manifest cache files will fail (and therefore your appcache will be incomplete) if there are any errors at all. So, if the close.png URL is throwing a 404, remove it or correct it—your cache won't work otherwise, simple as that.

Ben
  • 7,548
  • 31
  • 45