dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: Application Cache - Won't Work Offline

  1. #1
    Join Date
    Jun 2005
    Posts
    20

    Application Cache - Won't Work Offline

    I'm trying to get a test sheet to work offline by using an Application Cache. I've taken the following steps to do this but the document won't appear offline. All I get is a message saying "Not connected to the Internet".

    I've included in my HTML document <http://troncon.ca/wMf/offline.html>.
    I have placed an image file and three documents in the server (offline.html, offline.css and offline.js). The js and css documents are referenced in my html sheet.
    I've added a text file to the root directory of the Apache server (appcache.htaccess) which has the following line: AddType text/cache-manifest .appcache

    I've also included a manifest file (offline.appcache) in the same folder as the above documents. The contents of the manifest file are as follows:


    CACHE MANIFEST

    # Version 1

    CACHE

    offline.html
    offline.css
    offline.js
    danDare.gif

    The webpage downloads fine to my pc. However, when I then try to access it with my pc disconnected from the internet all I get is the message saying I'm not connected to internet.

    What have I missed?

    Thanks,

  2. #2
    Join Date
    Jun 2005
    Posts
    20
    Quote Originally Posted by TedN View Post

    I've included in my HTML document <http://troncon.ca/wMf/offline.html>.
    Just realized I had a typo. The above should read: <html manifest="http://troncon.ca/wMf/offline.html">

  3. #3
    Join Date
    Jun 2005
    Posts
    20
    OK. Found the problem - well, two actually.

    1. appcache.htaccess should be .htaccess
    2. I was missing a colon in the manifest. CACHE should be CACHE:

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles