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

No-Cache problem on the first time

I would like to close the cache, so I put the following statement on the
head of A.aspx,
<%@ OutputCache Duration="1" Location="None" VaryByParam="None"%>

However, when I view that A.aspx, and click one link to B.aspx, in there
something about page A.aspx is changed. Then I click BACK button to view
page A.aspx, IE shows Page not found error message in the first time. If I
press F5 to refresh, IE shows ok again. Now if I click the link to B.aspx
and click BACK button again, this time IE shows ok. ONLY FIRST TIME, IE
shows error message.

How to make IE always show ok?

---Frank
Nov 19 '05 #1
2 1697
Frank wrote:
I would like to close the cache, so I put the following statement on
the head of A.aspx,
<%@ OutputCache Duration="1" Location="None" VaryByParam="None"%>

However, when I view that A.aspx, and click one link to B.aspx, in
there something about page A.aspx is changed. Then I click BACK
button to view page A.aspx, IE shows Page not found error message in
the first time. If I press F5 to refresh, IE shows ok again. Now if
I click the link to B.aspx and click BACK button again, this time IE
shows ok. ONLY FIRST TIME, IE shows error message.

How to make IE always show ok?


That message is by design. IE warns you that refreshing the page will
resubmit your form data. This can lead to all kinds of undesirable side
effects in your application, if your code isn't capable of dealing with
this issue.

The message only shows when you try to repeat POST requests, which are
normally used to send form data. Clicking a simple hyperlink sends a
GET request though, which is *supposed* to be safely repeatable, thus
no message is shown by the browser.

Cheers,
--
http://www.joergjooss.de
mailto:ne********@joergjooss.de
Nov 19 '05 #2

"Joerg Jooss" <ne********@joergjooss.de> ???????:xn****************@msnews.microsoft.com...
That message is by design. IE warns you that refreshing the page will
resubmit your form data. This can lead to all kinds of undesirable side
effects in your application, if your code isn't capable of dealing with
this issue.

The message only shows when you try to repeat POST requests, which are
normally used to send form data. Clicking a simple hyperlink sends a
GET request though, which is *supposed* to be safely repeatable, thus
no message is shown by the browser.


I got it, and thanks very much.
Nov 19 '05 #3

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

Similar topics

1
by: banaticus | last post by:
What does this error message mean? What can I do to fix it? Here'e the command that I just tried running, and the messages that I received. I just barely unpacked python. linux:/Python-2.4 #...
2
by: asdf | last post by:
Hello, I was enjoying working in VS for half a year without any problems and now I cannot debug anymore. Without any really reason my Studio tells me that the page that I want to debug has - No...
3
by: RWC | last post by:
Hello, I have an issue that's driving me batty! I have a report, whose record source is SQL based on a normalized set of tables. There are no nested queries and no dlookups in this record...
3
by: Stevie_mac | last post by:
It might be me but... I dont seem to get a Page_Load event when a opening an ASPX in an iFrame. I do geta Page_Load event when an item on the ASPX (inside the iFrame) is clicked but then...
4
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
0
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
4
by: sara | last post by:
Hi - I've looked at many posts, and cannot find the answer on this specific problem. I have several fields on a table, which I've defined as "Text", 3 characters, Format Yes/No (I picked up the...
3
by: Rahul B | last post by:
Hi, I have a user UCLDEV1 which is a part of staff and a group(db2schemagrp1) to which i have not given any permissions. The authorizations of that user are shown as db2 =get authorizations...
0
natalie99
by: natalie99 | last post by:
Hey people! Being so lacking in access knowhow I have turned to good old 'asking the smart people' again! I need to create a query or lookup table (although I have had zero success with lookups...
1
by: sora | last post by:
Hi, I've developed a MFC program under VS 6.0. My debugger *was* working fine and I've used it often for my project. Then, one day, the errors below appear and they prevent me from using the...
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: 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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.