top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is Application Cache in Html5?

+2 votes
164 views

What is application cache in Html5?

HTML5 introduces application cache, which means that a web application is cached, and accessible without an internet connection.

Using an application cache gives an application the following benefits:

Offline browsing: users can navigate a site even when they are offline.
Speed: cached resources are local, and therefore load faster.
Reduced server load: the browser only downloads resources that have changed from the server.

To enable the application cache for an application, you must include the manifest attribute in the <html> element in your application's pages,

<html manifest="example.appcache">
  ...
</html>

The manifest file is a simple text file, which tells the browser what to cache (and what to never cache).

The manifest file has three sections:

CACHE MANIFEST - Files listed under this header will be cached after they are downloaded for the first time
NETWORK - Files listed under this header require a connection to the server, and will never be cached
FALLBACK - Files listed under this header specifies fallback pages if a page is inaccessible

Video for Application Cache

posted Oct 20, 2015 by anonymous

  Promote This Article
Facebook Share Button Twitter Share Button LinkedIn Share Button

...