you can't clear the browser cache form the code behind. code behind files are executed on the server side. (Assuming your project is ASP.NET). And also, as far as I know, you can't clear browser cache using client side script such as javscript etc..
you can clear the application cache pragmatically.
$('.button').click(function() {
$.ajax({
url: "",
context: document.body,
success: function(s,x){
$('html[manifest=saveappoffline.appcache]').attr('content', '');
$(this).html(s);
}
});
});
or you have to disable the cache control
<meta http-equiv='cache-control' content='no-cache'>
<meta http-equiv='expires' content='0'>
<meta http-equiv='pragma' content='no-cache'>
or you have to load your files(css/images/script) as following like way
/style.css?modified=20130116044521
?modified=20130116044521
is a dynamic parameter just like
current-time-stamp
Application cache
http://www.html5rocks.com/en/tutorials/appcache/beginner/[
^]
please check the following link for more caching information
http://www.mnot.net/cache_docs/[
^]