Keeping pages out of cache- need to return to server...

C

Charlie

Hi:

I'm using the following directive in my asp.net pages to instruct browser to
not cache pages. However, when I click back button, it does not return to
server to get a fresh page, it just displays error page saying "page can not
be displayed". Looks like page is not being cached, but new page is not
being returned from server.

<% @OutputCache Duration = "1" VarybyParm = "none" Location="none" %>

Thanks,
Charlie
 
K

Kevin Spencer

First aof all, Charlie, you might want to set up IE not to display friendly
HTTP error messages. They aren't friendly at all to us developers. I'm not
sure who they are supposed to be friendly to. Friendly HTTP error messages
tell you nothing at all.

Just guessing, due to the lack of information, but if the last page did a
PostBack, you would not be able to navigate back to it without refreshing
the page and re-posting the form.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top