Advertisment

Learn difference in cashing between HTML and HTML5?


Difference in cashing between HTML and HTML5?

Introduction.

HTML introduces application cache in which mean that a web application is

cached, and available without an internet connection

Browsers use caching to store HTML web pages by storing a copy of searched

pages and then using that copy to provide when you re visit that page. If the date

on page is  same date as the previous store copy, then the computer uses the one

on your hard drive  than re downloading.

Application cache gives an application three advantages

Offline browsing – all users can use the application when they re offline

Speed - cached resources load quickly

Reduced server load - the browsers will only download updated or changed

resources from the server

Sections in a cache manifest file: cache, network, and fallback

A manifest can have three separate sections: cache, network, and fallback.

CACHE:

This is the default section for entries in a cache manifest file. Files listed under

the CACHE: section header are openly cached after downloaded for the first time.

NETWORK:

Files listed under the network: section header in the cache manifest file blank

resources that need a connection to the server. All requests to such ways ignore

the cache, even if the user is offline. The wildcard character can be used once.

FALLBACK:

The fallback section fixes fallback pages the browser should use if a resource is

out of range. Each entry in this section lists two URIs the first is the resource, the

second is the fallback. Both URIs must be connect and from the same origin as the

manifest file. Wildcards may be used.

The cache, network, and fallback section ca listedd in any order in a cache

manifest file and each section appear more than once in a single manifest.

HTML5 Cache

HTML5 provides application cache in which means that a web applications is

cached, and accessible with out an internet connections. Application cache gives

an application three advantages:

The new HTML 5 specification allows browsers to pref-etch some or all of a website

resources such as HTML files, images, css, JavaScript, and so while the customer is

connect. It’s not necessary for the user to have accessed this content previous, to

make attractive this content. In other words, application cache can pref etch pages

that have not been seen at all and are thereby occupied in the regular browser

cache prefacing file can be speed up the of the site ability, though you are of

course using bandwidth to download those files basically. In addition to this

application cache will provide

Speed since the entire contents of the specified page will be cached to browser

so it will promote a better speed than browser cache.

Reduce Server Load There is no need of  post back all the time, since all

the contents are there in cache-and there is any change in the Manifest file.

Cache manifest: The cache manifest file is the main part of HTML 5

application cache. We can specify what are the pages need not be cached, what

should not, and even we can reuse this one as a error handling technique, for that

we can specify a custom error page.

FALLBACK:

This sections to show if the user requests a content that require networks

connectivity.
Share on Google Plus

About bilal S

I am founder of javaHint.com and a Computer Scientist. I have studied Computer Science and currently enrolled research student .I am providing information about computer, s web Programming Languages, Architecture and All other basic information Such as Information Technology and Computer Science. For Any Query and suggestion you are always welcome to contact me.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment