i'm trying to remove cache without restart the browser with asp.net C# code. this is my code
HttpCookie myCookie = new HttpCookie("email_address");
myCookie.Expires = DateTime.Now.AddDays(-1d);
Response.Cookies.Add(myCookie);
HttpCookie tenantcookie = new HttpCookie("tenant_id");
tenantcookie.Expires = DateTime.Now.AddDays(-1d);
Response.Cookies.Add(tenantcookie);
HttpCookie access_token = new HttpCookie("access_token");
access_token.Expires = DateTime.Now.AddDays(-1d);
Response.Cookies.Add(access_token);
The cache has been deleted, but I have to close my browser and open my browser again to show see if the cache has been delete or not.
Any suggestions?