add cookie cache factory