disable cache in asp.net

disable cache in asp.net
In this article, we are going to see, how to disable cache in asp.net

The following configuration sample adds an HTTP "Cache-Control: no-cache" header to the response, thereby disabling caching of requests.

Web.config :

<configuration>
   <system.webServer>
      <staticContent>
         <clientCache cacheControlMode="DisableCache" />
      </staticContent>
   </system.webServer>
</configuration>


Post a Comment

0 Comments