29. Shit you will do wrong
• Setting wrong MIME type
• Have one !le 404
• Not realizing user will always see old
version !rst
• Develop with appcache enabled
(tip: set wrong MIME type in dev)
61. Making it less naive
• Use indexedDB: http://nparashuram.com/IndexedDBShim/
• Wrap around current AJAX lib
• Expiration dates
• Of"ine -> ignore expiration date
65. Lessons learned
• Of"ine is awesome, speed is awesome!
• Cache shell: packaging, appcache or ServiceWorkers
• Cache content: localStorage, indexedDB, write cache logic that
suits you
• Data syncing: hard, take something off the shelf