Software Archive
Read-only legacy content

App Cache

John_N_1
Beginner
452 Views

Hi good pple,

This is what I have done to cache my app, but it's not working:

-Edit the <html> tag on the index.html file to point to the manifest file <html manifest="http://localhost/template-login-view-master/www/php/cache.manifest">

-Create a file named cache.manifest inside the php folder. Add in that file these lines:

    CACHE MANIFEST
   # rev 42
    CACHE:
    clickSlider.png

clickSlider.png is a file the app uses somewhere. It's located in the php folder.

-Create a file named .htaccess inside the php folder with this line :

AddType text/cache-manifest .manifest .

When I stop the server  and refresh the app, it doesn't show anything. Please help.

0 Kudos
1 Reply
Amrita_C_Intel
Employee
452 Views

You can use the technique described here by creating an offline.appcache file and then setting it up to store the files that are needed to run the program offline. Note that offline applications need to be built using the Cordova or Legacy Hybrid build options.

0 Kudos
Reply