cleanup, localstorage update and cache manifest