Fix errors when load cache.
Fixe some bugs with real HTML5 manifest.