Clear Browser Cache using Asp.net c#
A web cache is a Process for the temporary storage of web documents, such as HTML
pages and images, to reduce bandwidth usage, server load.
Use this function all the Button Click Event Automatically Clear the cache memory.
Use this function all the Button Click Event Automatically Clear the cache memory.
public void
RemoveCache()
{
HttpContext context = HttpContext.Current;
IDictionaryEnumerator enumerator =
context.Cache.GetEnumerator();
while (enumerator.MoveNext())
{
context.Cache.Remove(enumerator.Key.ToString());
}
}
Comments
Post a Comment
Thank You for your Comment