cache location using cookie