appcache in html5

53 views Asked by At

I have the following HTML source code:

<html manifest="demo_html.appcache">
<body>

<script src="demo_time.js"></script>

<p id="timePara"><button onclick="getDateTime()">Get Date and Time</button></p>

<p><img src="img_logo.gif" width="336" height="69"></p>

<p>Try opening <a href="tryhtml5_html_manifest.htm" target="_blank">this page</a>, then go offline, and reload the page. The script and the image should still work.</p>

</body>
</html>

And file demo_html.appcache

CACHE MANIFEST
# 2012-02-21 v1.0.0
/logo.gif
/demo_time.js

When I click the HTML page the cache does not work. I do not understand why? Any ideas?

0

There are 0 answers