Clear Browser Cache using Asp.net c#

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.

    public void RemoveCache()
        {
            HttpContext context = HttpContext.Current;
            IDictionaryEnumerator enumerator = context.Cache.GetEnumerator();
            while (enumerator.MoveNext())
            {
                context.Cache.Remove(enumerator.Key.ToString());
            }
        }


Comments

Popular posts from this blog

Display Canvasjs Line Chart using Data from Database

Insecure cookie setting: missing Secure flag

Tips for Protecting Your Email Privacy