Html miscellaneous


  1. Which line is mandatory in cache manifest file?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    For offline access, there is a text file named cache manifest. It lists the resources of the browser. For enabling application cache for any app we must include manifest attribute inside an html tag of the document like <html manifest=”text.appcache”> this manifest should be included on every page that we want cached.


  1. Which is not the section of manifest?











  1. 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.



  1. Resources do not fit into _______.











  1. 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.


  1. Which entry executes and load scripts from the server?











  1. 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.



  1. Which of the following is not one of the cache state?











  1. 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.