Upgrade to Pro — share decks privately, control downloads, hide ads and more …

HTML5 Application Caching

HTML5 Application Caching

Ryan McGeary

February 05, 2012
Tweet

More Decks by Ryan McGeary

Other Decks in Technology

Transcript

  1. HTML5 Application Caching There are only two hard things in

    Computer Science: cache invalidation and naming things. -- Phil Karlton Ryan McGeary http://ryan.mcgeary.org @rmm5t
  2. FALLBACK Sections CACHE MANIFEST FALLBACK: / /offline.html NETWORK: * CACHE:

    http://www.google-analytics.com/ga.js /favicon.ico
  3. Expiring The Cache CACHE MANIFEST # Updated: <%= something.updated_at %>

    # Released: <%= application_released_at %> NETWORK: * CACHE: # ...
  4. window.applicationCache.status 0: window.applicationCache. UNCACHED 1: window.applicationCache. IDLE 2: window.applicationCache. CHECKING

    3: window.applicationCache. DOWNLOADING 4: window.applicationCache. UPDATEREADY 5: window.applicationCache. OBSOLETE