1

I'm trying to make a web-app viewable when offline.

  • My index.html references the manifest like so: <!DOCTYPE html manifest="manifest.appcache">
  • The MIME type is correct: my .htaccess has AddType text/cache-manifest .appcache

This is what manifest.appcache looks like:

CACHE MANIFEST
# 2012-09-28:v1

CACHE:
style.css
images/logo.png

However, nothing is cached.

When I call applicationCache.status in a javascript console, it returns 0 (I think it should return 1 if successful).
In Chrome, viewing chrome://appcache-internals/ also reveals that there are no application caches.

What am I doing wrong?

1
  • Have you checked your MIME type in the browser's dev tool's network console? Commented Sep 28, 2012 at 11:49

1 Answer 1

1

Well, that was stupid. Here's what I was doing wrong:

<!DOCTYPE html manifest="manifest.appcache">

Should've been:

<!DOCTYPE html>
<html manifest="manifest.appcache">
Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for this. I was absolutely going insane looking for a solution.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.