expiring cache in local storage, stream body when no query string