473,404 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

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 1684
To disable client-side cache use meta tag
<META HTTP-EQUIV ="Expire" CONTENT ="0">

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

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

"Mantorok" <no**@none.comwrote 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******@Private.4mewrote in message
news:eZ**************@TK2MSFTNGP04.phx.gbl...
To disable client-side cache use meta tag
<META HTTP-EQUIV ="Expire" CONTENT ="0">

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

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

"Mantorok" <no**@none.comwrote 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
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" ...
1
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
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...
2
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...
6
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...
10
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);...
1
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
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...
8
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
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...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.