tags:

views:

27

answers:

1

Hi,

Say I have an aspx page (page.aspx) and in the page load event I have a code to generate a txt file. Here the sequence of action:

  1. type the address in the address bar of IE browser (e.g. http://localhost/somesite/page.aspx) --> this will execute the page load event and generate the txt file.
  2. Delete the generated file above and In the same browser(page), re-type the same url (http://localhost/somesite/page.aspx) --> this will not execute the page load event and of course will not generate the txt file
  3. Click the refresh button on the browser, now it executes the page load event and generates the txt file.

Can anyone explain what is happening on step #2? is this some sort of page level cache?

thanks

A: 

Try using a tool such as Fiddler to monitor the HTTP requests and responses. Pay special attention to the Expires header. Step 2 probably doesn't even talk to the server since the page has not expired yet.

Frédéric Hamidi
fiddler cannot detect localhost I believe!
Of course [it can](http://www.fiddler2.com/Fiddler/help/hookup.asp#Q-LocalTraffic) :)
Frédéric Hamidi