Training Guide: Programming in HTML5 with JavaScript and CSS3 Ebook

(Nora) #1

Answers CHAPTER 16 619


Lesson 4



  1. Correct answer: B
    A. Incorrect: CACHE is not a valid statement for the first line of a manifest file.
    B. Correct: The CACHE MANIFEST statement must appear at the top of every mani-
    fest file.
    C. Incorrect: CACHE-MANIFEST is not a valid statement for the first line of a manifest
    file.
    D. Incorrect: CACHE-ALWAYS is not a valid statement for the first line of a manifest
    file.

  2. Correct answer: C
    A. Incorrect: The downloading event is fired as the browser is downloading new
    content.
    B. Incorrect: The cached event is fired for newly created caches only.
    C. Correct: The updateReady event tells you when a cache is updated with new
    resources.
    D. Incorrect: The applicationCache object does not have an available completed
    event.

Free download pdf