3/6/2021 0 Comments Javascript Offline App
The advantage of building offline web applications is that users can still use the web applications without network connectivity.The offline web application feature is really useful for allowing your sites users to work with the resources which dont require network connectivity like HTML, image, CSS, JavaScript, media files and other resources.This HTML5 caching can be looked at like a super set of the normal browser caching.In HTML5, caching is done on the file basis and the developer has the flexibility to specify which of the files need to be cached.
As with many of the features of HTML5, not all browsers support the offline web application caching feature. Below is the list of prominent browsers that do support the offline feature. Most surprisingly, even including IE9, there is no such support available on Internet Explorer. This file implicates the list of files that are to be cached on the client, which will be served by the web application during the down time. The cache manifest file has specific syntaxrules to be followed. Without using this section, files can also be listed directly under the CACHE MANIFEST line. When requests are made to these files, the local user cache will be bypassed. It takes two relative URL parameters: the first one should be the actual network resource and the second one is the fall back resource. When the user is offline and the request is made to the network resource then the user is served with the fallback resource from the local cache. These files will be cached implicitly even though they are not listed in the manifest file. The local user cache will be updated only if the manifest file is updated or if the user has cleared the client cache. ![]() Calling applicationCache.swapCache() on UPDATEREADY status will pull the modified cache resources from the server and update the local cache content. I hope this article brings good ideas to readers about the offline web application feature in HTML5. Please make use of the comments section below to provide your comments or to ask questions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |