Last post Jun 27, 2014 04:31 AM by Intrance
Jun 18, 2014 05:41 AM|jos3|LINK
Sometimes happens that when I update the web in server the changes are not refreshed in browser until the cache is not cleared (pressing F5 or Ctrl+F5). There are any special configuration in IIS or code behind which clear the cache and make me sure that
the page requested is updated?
Jun 18, 2014 05:44 AM|Ashim Chatterjee|LINK
server and client browser are different.Clearing the cache should be done by client browser , server has nothing to do with this.
Jun 18, 2014 05:49 AM|mike4u|LINK
For Browser : Look into the
cache-control and the
expires META Tag.
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="EXPIRES" CONTENT="Mon, 22 Jul 2002 11:12:01 GMT">
Another common practices is to append constantly-changing strings to the end of the requested files. For instance:
Jun 24, 2014 08:39 AM|jos3|LINK
I need to control the cache, mike4u.
It is really a complicated case, because I would only need refreshing the page when I perform an update in IIS and need to be sure that the user's browser is not displaying an old version of the webpage. But if you, Ashim Chatterjee, say that it only depends
on client side, there are not much left to do, right?
Jun 24, 2014 08:41 AM|Ashim Chatterjee|LINK
there are not much left to do, right?
exactly, its client / end user's headache to clear the cache on timely fasion.you(server) cant do anything about this.
Jun 25, 2014 02:13 AM|jos3|LINK
I will have to deal with it.
Jun 25, 2014 02:16 AM|Ashim Chatterjee|LINK
Glad you got it :)
Have a great day.
Jun 27, 2014 04:31 AM|Intrance|LINK
Actually, you can control this. Check out