html5 - indexdb cache assets