Added configurability for domain and expiration to cookie cache