473,385 Members | 1,834 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,385 software developers and data experts.

Expire IE browser cache, again.

Hi,
I have checked this newsgroup and goggled in order to find out how to expire
the IE browser cache in order to ALWAYS get this text

Warning: Page has Expired The page you requested was created using
information you submitted in a form. This page is no longer available. As a
security precaution, Internet Explorer does not automatically resubmit your
information for you.

To resubmit your information and view this Web page, click the Refresh
button.


when the user presses the back button in IE 6.0.

I came up with this code:

Response.CacheControl = "no-cache"

Response.Cache.SetExpires(DateTime.Now.AddSeconds( 0))

Response.Cache.SetCacheability(HttpCacheability.No Cache)

Response.Cache.SetValidUntilExpires(False)

Response.Cache.SetNoStore()

Response.AppendHeader("Pragma", "no-cache")

Response.Cache.SetRevalidation(HttpCacheRevalidati on.AllCaches)

Infortunately it doesnt always works.

Tips anyone?

/k
Nov 19 '05 #1
4 1816
Try : <%@ OutputCache Location="None" %> in your aspx page.


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"kurt sune" <ap*@apa.com> wrote in message news:e$**************@TK2MSFTNGP09.phx.gbl...
Hi,
I have checked this newsgroup and goggled in order to find out how to expire
the IE browser cache in order to ALWAYS get this text

Warning: Page has Expired The page you requested was created using
information you submitted in a form. This page is no longer available. As a
security precaution, Internet Explorer does not automatically resubmit your
information for you.

To resubmit your information and view this Web page, click the Refresh
button.


when the user presses the back button in IE 6.0.

I came up with this code:

Response.CacheControl = "no-cache"

Response.Cache.SetExpires(DateTime.Now.AddSeconds( 0))

Response.Cache.SetCacheability(HttpCacheability.No Cache)

Response.Cache.SetValidUntilExpires(False)

Response.Cache.SetNoStore()

Response.AppendHeader("Pragma", "no-cache")

Response.Cache.SetRevalidation(HttpCacheRevalidati on.AllCaches)

Infortunately it doesnt always works.

Tips anyone?

/k

Nov 19 '05 #2
Nope,
some of the pages I am backing to still shows up. Usually the first and
third.

/k
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
Try : <%@ OutputCache Location="None" %> in your aspx page.


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"kurt sune" <ap*@apa.com> wrote in message

news:e$**************@TK2MSFTNGP09.phx.gbl...
Hi,
I have checked this newsgroup and goggled in order to find out how to expire the IE browser cache in order to ALWAYS get this text

Warning: Page has Expired The page you requested was created using
information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you.

To resubmit your information and view this Web page, click the Refresh
button.


when the user presses the back button in IE 6.0.

I came up with this code:

Response.CacheControl = "no-cache"

Response.Cache.SetExpires(DateTime.Now.AddSeconds( 0))

Response.Cache.SetCacheability(HttpCacheability.No Cache)

Response.Cache.SetValidUntilExpires(False)

Response.Cache.SetNoStore()

Response.AppendHeader("Pragma", "no-cache")

Response.Cache.SetRevalidation(HttpCacheRevalidati on.AllCaches)

Infortunately it doesnt always works.

Tips anyone?

/k


Nov 19 '05 #3
the warning only occurs if the page navigated to in the history was the
result of a post. if it was a GET, user typed url, or the server sent a
redirect, then the warning will not appear.

-- bruce (sqlwork.com)
"kurt sune" <ap*@apa.com> wrote in message
news:Oh**************@TK2MSFTNGP10.phx.gbl...
Nope,
some of the pages I am backing to still shows up. Usually the first and
third.

/k
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
Try : <%@ OutputCache Location="None" %> in your aspx page.


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"kurt sune" <ap*@apa.com> wrote in message

news:e$**************@TK2MSFTNGP09.phx.gbl...
> Hi,
> I have checked this newsgroup and goggled in order to find out how to expire > the IE browser cache in order to ALWAYS get this text
>
> Warning: Page has Expired The page you requested was created using
> information you submitted in a form. This page is no longer available. As a > security precaution, Internet Explorer does not automatically resubmit your > information for you.
>
> To resubmit your information and view this Web page, click the Refresh
> button.
>
>
>
>
> when the user presses the back button in IE 6.0.
>
> I came up with this code:
>
> Response.CacheControl = "no-cache"
>
> Response.Cache.SetExpires(DateTime.Now.AddSeconds( 0))
>
> Response.Cache.SetCacheability(HttpCacheability.No Cache)
>
> Response.Cache.SetValidUntilExpires(False)
>
> Response.Cache.SetNoStore()
>
> Response.AppendHeader("Pragma", "no-cache")
>
> Response.Cache.SetRevalidation(HttpCacheRevalidati on.AllCaches)
>
>
>
>
>
> Infortunately it doesnt always works.
>
>
>
> Tips anyone?
>
>
>
> /k
>
>



Nov 19 '05 #4
THANKS!!!!

now i get it.

"Bruce Barker" <br******************@safeco.com> wrote in message
news:uX**************@tk2msftngp13.phx.gbl...
the warning only occurs if the page navigated to in the history was the
result of a post. if it was a GET, user typed url, or the server sent a
redirect, then the warning will not appear.

-- bruce (sqlwork.com)

Nov 19 '05 #5

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

Similar topics

7
by: What-a-Tool | last post by:
How does the expire date work setting it server side with asp. I know with javascript setting it client side it will be set to the clients local time, and therefore expire when the clients local...
0
by: martin | last post by:
Hi, I am storing a dataset in cache, which is happening fine. I can easily retrive it at postback from the cache, cast it to a dataset and reuse it. However I have specified that the cache...
13
by: Veeresh | last post by:
I am using .Net 1.1. How to expire an .aspx page? I think I have to use HttpCachePolicy class for this. But not sure how to use and where to this code to work. Is it in Page_load event. Thanks...
2
by: Dicky Cheng | last post by:
Hi, I am using absolute expiration to expire my cache object in Cache API. And I set it to expire after 60min. Then I test it, it cache, and everything fine. Then I stop working and lock...
2
by: mac | last post by:
Hi! I've searched the net for ways to expire a page immediately, so when the user hit 'Back', they receive the "Page Has Expired" error page and I've seen a number of posts on how to do it -...
4
by: Scott Shuster | last post by:
Hi, I've been searching and testing and have not yet found the answer I'm looking for. I have an ASP.NET (vb) application with an ecommerce function. When the user submits the page, I DON'T...
2
by: Chris Davoli | last post by:
How do you expire pages so that the user can't hit the back button on his browser in Internet Explorer? I've tried the meta tag in the header that has an expires = 0 and also in vb.net...
5
by: =?Utf-8?B?Y2hlY2tyYWlzZXJAY29tbXVuaXR5Lm5vc3BhbQ== | last post by:
I have a site which I secure with forms authentication. When the user's sign on and hit one of the secure pages, I have this line in my code to ensure that the browser does not cache the page;...
5
by: vinodsk101 | last post by:
Hi all, I am developing a web application. I am using Servlet and JSP. After logout the user should not able to see the previous pages and page should navigate to loginpage.jsp. I have used...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.