473,545 Members | 2,094 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Disable caching

Hi

Is there an easy way to disable ALL client-side caching for my entire
web-site?

Is there also an easy way to cause any "refreshes" and "back" actions to
cause an automatic re-direct to my login page?

Thanks
Kev
Aug 15 '06 #1
2 1690
To disable client-side cache use meta tag
<META HTTP-EQUIV ="Expire" CONTENT ="0">

2nd, refresh action.. use
if(IsPostBack)
{
Response.Redire ct("login.aspx" );
}

3- back action
check the Browser Referrer
if(Request.UrlR eferrer.Absolut eUri =="http://......")
Note : This will only work after disable cache.
Good luck

"Mantorok" <no**@none.comw rote in message
news:eb******** **@newsfeed.th. ifl.net...
Hi

Is there an easy way to disable ALL client-side caching for my entire
web-site?

Is there also an easy way to cause any "refreshes" and "back" actions to
cause an automatic re-direct to my login page?

Thanks
Kev

Aug 15 '06 #2
Thanks!

Kev

"Islamegy®" <Is******@Priva te.4mewrote in message
news:eZ******** ******@TK2MSFTN GP04.phx.gbl...
To disable client-side cache use meta tag
<META HTTP-EQUIV ="Expire" CONTENT ="0">

2nd, refresh action.. use
if(IsPostBack)
{
Response.Redire ct("login.aspx" );
}

3- back action
check the Browser Referrer
if(Request.UrlR eferrer.Absolut eUri =="http://......")
Note : This will only work after disable cache.
Good luck

"Mantorok" <no**@none.comw rote in message
news:eb******** **@newsfeed.th. ifl.net...
>Hi

Is there an easy way to disable ALL client-side caching for my entire
web-site?

Is there also an easy way to cause any "refreshes" and "back" actions to
cause an automatic re-direct to my login page?

Thanks
Kev


Aug 15 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
3184
by: Tony Marston | last post by:
If the use of the browser's BACK button is interfering with the operation of your web application then take a look at this article entitle "Back Button Blues" http://www.tonymarston.co.uk/php-mysql/backbuttonblues.html -- Tony Marston http://www.tonymarston.net
1
418
by: Rune | last post by:
Hi I use MMIT to render XHTML pages. How do I disable client caching? I've tried the following commands: Response.CacheControl = "private"; Response.Cache.SetNoStore();
1
2262
by: Kamyar Souri | last post by:
How can I disable Image caching? I use ASP.NET Image web control that it's ImageUrl is constant but the image is being changed by the code. because of cachin I always see the same image in my Image web control. Thank you in advance.
2
6943
by: Mike Sobeiski | last post by:
Hi There! I'm developing a web project that requires to produce charts off the database and output it as image and presented to the user in a HTML document. (NOTE: Image is not directly streamed, but just linked in HTML output). The problem is, when user want to see the graph by changing parameters, they always have to click refresh to...
6
2791
by: Raghu Raman | last post by:
Hi, we are doing an in house project in c#.net(asp.net).We wanted to close our application when ever the user presses the SIGNOUT button. Even though we programtically disconnects them from the database,when we press the Internet explorers Back button ,all the browsed pages are displayed with the data**. 1.could you pls tell me how to...
10
4382
by: Umut Tezduyar | last post by:
It seems, it is caching it. The following code is an example for it. How can avoid from this. override void OnLoad (sender and eventargs) { Control control = this.LoadControl (path); this.Controls.Add (control); // I change the content of the html of the control. TextReader reader = new StreamReader (path);
1
2024
by: keithb | last post by:
Using the VS built-in web server, class properties and datatables seem to be getting cached between my debug sessions. How can I disable all caching? Thanks, Keith
4
2733
by: RedHair | last post by:
Development: Windows 2003 Production :Windows 2003 ASP.NET 2.0 + C# I want to disable the cache feature of all pages in dev but enable it in production environments. What's the solution? If uses cacheProfiles in web.config then I need to deploy different web.config files from dev to production sites.
8
12890
by: anukedari | last post by:
Hi, Could any boby please help to get the answers for the following questions: Is Apache always sends "X-Cache:MISS" header even when caching is off (disable)? or Can we say that cache settings are enable if it sends "X-Cache:MISS" header in the response? Your help would be appreciated.
0
7467
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7807
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7419
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7756
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5971
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4944
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3450
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3442
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1879
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.