1.

Which entry executes and load scripts from the server?(a) Explicit entry(b) Network entry(c) Fallback entry(d) Master entryThis question was posed to me in an internship interview.My question comes from Application Cache and Cache Manifest File topic in chapter HTML Images & Web Page Files of HTML

Answer»

The correct choice is (b) Network ENTRY

Explanation: There are four types of resources in an APPLICATION cache which are 1) Master Entries 2) EXPLICIT Entries 3) Network Entries 4) Fallback Entries. Resources are EXPLICITLY listed in the application’s cache manifest FILE by the explicit entry. Fallback entry provides fallback entries in the application’s manifest file. Master entries are the resources added to the cache. Network entry executes and load scripts and code from the server, not from the cache. Syntax is

CACHE MANIFEST

NETWORK:

/api

Resources are explicitly listed in a cache in explicit entries. When attempt to load fails fallback entry is used.



Discussion

No Comment Found

Related InterviewSolutions