0

Hi I'm trying to use application cache .As it is documented I'm getting a prompt like :

This website() is asking to store data on your computer for offline use .

with 3 options :

1.Allow 2. Never for this website 3. Not now

In my case only 3rd option works .Why?

Here is my html file

<html manifest="example.appcache">
.......
</html>
Rob W
  • 341,306
  • 83
  • 791
  • 678
radhe001
  • 324
  • 1
  • 3
  • 16
  • What do you mean by 'only the third option works'? How have you tested it? Do you see any errors in the console? – robertc Jul 23 '12 at 22:28
  • Clicking on any of the 3 options should close the prompt but when I clicked on option 1 (Allow) and 2 (Never for this website) , the prompt didn't close .It closed only when I clicked on 3rd option (Not now). – radhe001 Jul 24 '12 at 08:50
  • Sounds like something is wrong with your browser then. – robertc Jul 24 '12 at 10:41
  • I'm not sure about it .I thought some settings may be required for using app cache .That's why I asked about it .Anyways thanks .I've dropped the idea for app cache and using localStorage ! – radhe001 Jul 25 '12 at 06:06

1 Answers1

0

It's because you:

  • either are hosting the appcache file locally on your computer, and your computer does not return the correct MIME to your browser: text/cache-manifest
  • or your server (IIS/Apache) is not configured correctly to deliver the .appcaches files with the correct MIME.

For Apache you need to add this line to your .htaccess

AddType text/cache-manifest .appcache

For IIS, there are tutorials to be found if you search for "appcache IIS MIME"

j0k
  • 22,600
  • 28
  • 79
  • 90
PJN
  • 1