HTML5 Application Cache – Smart TV

HTML5 Application Cache – Smart TV

BY 01 May 2018 Web Application Development

I am working on Tizen 3.0 smart tv.
I want to cache few images and js files.

To test the application cache, my demo file looks like this
 

demo.appcache

CACHE MANIFEST
#VERSION 1.0.0
CACHE:
cache_test.js

index.html —

<!DOCTYPE html>
<html manifest="demo.appcache">
<head>
<title>APPCACHE TEST</title>
</head>
<body>
<script src="cache_test.js"></script>
</body>
</html>


But when i run it, the manifest file does not get linked at all. When I execute applicationCache.update() from console, it gives the error “there is no application cache to update”.

Please guide me through a simple example of using application cache.

Written by