update cookie only when offline