How to set up a manifest file

This is my first time in stackoverflow, so if I break any rule or something like that, tell me and I will try to fix it as soon as possible.

I am trying to configure a manifest file (appcache) to upload 2 files (one html and one JS) and be able to use this HTML code offline, but after many attempts, I could not configure the manifest file (or maybe something still fail?) to store appcache files.

At the moment I have in the same folder, 3 files: juego.html, damas.appcache and juego.js

damas.appcache:

CACHE MANIFEST CACHE: juego.html juego.js NETWORK: * 

and in the html file ... juego.html:

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

I donโ€™t think that my explanation requires more HTML or javascript code, but if necessary, regardless of this.

ยฟHow can I save files locally?

Thank you all

+5
source share
1 answer

Perhaps you have an older version of the html cache installed. This is similar because your installation looks correct, but your damas.appcache lacks a unique value - for example, a timestamp. The manifest cache is updated only when this file is modified.

It is also possible that your mime type is incorrect. Make sure the mime type manifest set is set to text/cache-manifest .

Apache : AddType text/cache-manifest .appcache


Literature:

. See Cache manifest on my website: http://pygeek.com

See the Beginner's Guide to Using the Application Cache: http://www.html5rocks.com/en/tutorials/appcache/beginner/

+2
source

All Articles