fix to cache control and cache expiration of localstorage