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 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
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
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 > >
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)
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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 -...
|
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...
|
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...
|
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;...
|
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...
|
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,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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$) {
}
...
|
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...
|
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
|
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...
|
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,...
|
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,...
|
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...
| | |