Html miscellaneous
- When a new version of any cache is available which even is fired?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
When there is an availability of the new version of the cache updateready event is fired. When the resources are being downloaded then progress event is fired. Checking event is fired when an update is being checked. Obsolete is fired when the current cache is marked obsolete.
- Which of the following is not one of the cache state?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
Updateready, obsolete, downloading, checking, idle, uncached are the states of cache. Downloading state of cache denotes that the resources are being downloaded. Checking state signifies that manifest is being checked for the updates. Idle state denotes that the cache is not currently active for the process to update.
- Which entry executes and load scripts from the server?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
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.
- Resources do not fit into _______.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
The categories for the resources to fit in are explicit entries, master entries, network entries, fallback entries. Entry can be both fallback and explicit entry. Any HTML file that contains manifest attribute is a master entry. Explicit entries are listed explicitly in the cache section.
- Which is not the section of manifest?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
If the files are not in cache they come from a list of the files in the network. Cache is the default section. The files those are listed under this header are explicitly cached after downloading for the first time. If the resource is inaccessible then this section will be in use. There is no any rule to list these section, can be listed in any order.