Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to clear Client Cache

How to clear Client Cache

Scheduled Pinned Locked Moved ASP.NET
sysadmintutorial
6 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    ranjan_namitaputra
    wrote on last edited by
    #1

    I am building a website, and want to clear cache of all the clients from server at a particular time. Please let me know how to do this. :-O

    A 1 Reply Last reply
    0
    • R ranjan_namitaputra

      I am building a website, and want to clear cache of all the clients from server at a particular time. Please let me know how to do this. :-O

      A Offline
      A Offline
      Abhishek Sur
      wrote on last edited by
      #2

      Have you tried Response.Cache.SetNoStore(); when one visits your page ? :-D Also add these

      Response.ExpiresAbsolute=DateTime.Now.AddDays(-1d);
      Response.Expires =-1500;
      Response.CacheControl = "no-cache";

      Hope this will help.

      Abhishek Sur


      My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

      **Don't forget to click "Good Answer" if you like to.

      R 1 Reply Last reply
      0
      • A Abhishek Sur

        Have you tried Response.Cache.SetNoStore(); when one visits your page ? :-D Also add these

        Response.ExpiresAbsolute=DateTime.Now.AddDays(-1d);
        Response.Expires =-1500;
        Response.CacheControl = "no-cache";

        Hope this will help.

        Abhishek Sur


        My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

        **Don't forget to click "Good Answer" if you like to.

        R Offline
        R Offline
        ranjan_namitaputra
        wrote on last edited by
        #3

        Thank you so much Abhishek for your help. I think this will help me. Also I have seen your articles listed for voting in home page. http://www.codeproject.com/script/Surveys/VoteForm.aspx?srvid=956[^] It is great. I have voted you. Thanks for the lovely article as well. :) :)

        A 1 Reply Last reply
        0
        • R ranjan_namitaputra

          Thank you so much Abhishek for your help. I think this will help me. Also I have seen your articles listed for voting in home page. http://www.codeproject.com/script/Surveys/VoteForm.aspx?srvid=956[^] It is great. I have voted you. Thanks for the lovely article as well. :) :)

          A Offline
          A Offline
          Abhishek Sur
          wrote on last edited by
          #4

          :-D :-D Thank you so much for your vote. I hope I could produce more like this in future. :-\ Cheers.

          Abhishek Sur


          My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

          **Don't forget to click "Good Answer" if you like to.

          R 1 Reply Last reply
          0
          • A Abhishek Sur

            :-D :-D Thank you so much for your vote. I hope I could produce more like this in future. :-\ Cheers.

            Abhishek Sur


            My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

            **Don't forget to click "Good Answer" if you like to.

            R Offline
            R Offline
            ranjan_namitaputra
            wrote on last edited by
            #5

            Thank you for your reply and wish you luck in this. I think you will win. :) Keep doing your good work. :cool:

            A 1 Reply Last reply
            0
            • R ranjan_namitaputra

              Thank you for your reply and wish you luck in this. I think you will win. :) Keep doing your good work. :cool:

              A Offline
              A Offline
              Abhishek Sur
              wrote on last edited by
              #6

              Yes thank you. :thumbsup:

              Abhishek Sur


              My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

              **Don't forget to click "Good Answer" if you like to.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups