473,394 Members | 1,746 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.

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

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
Nov 18 '05 #1
1 1103
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

"Charlie" <cf*******@radiustravel.com> wrote in message
news:OA**************@TK2MSFTNGP09.phx.gbl...
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

Nov 18 '05 #2

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

Similar topics

1
by: Phil Powell | last post by:
// PREVENT CACHING FIRST BEFORE ANYTHING ELSE! header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always...
1
by: Jawahar Rajan | last post by:
All, How can I set IIS to not cache pages so that new pages or updates to web pages are alwyas used and that the cached pages aare not used. Is the configuration on IIS or can i set it in my ASP...
0
by: Jim | last post by:
Hi, I'm working on a VS.NET 2003 (C#) app which will have several hundred pages. Most of the content is static, but there is a section for documents which is based on content from a database. ...
2
by: Anavim | last post by:
Hi, I have a simple ASP.NET application where you do a login and than I redirect you to the main page of the application. Once your login is successful, I'm setting the user object to the...
0
by: Adrian Parker | last post by:
IE.. Tools -> Internet Options -> Settings Button -> Check for newer versions of stored pages = Never If a user changes thier settings to this, then pages are cached in IE. From what we've...
11
by: EagleRed | last post by:
I am writing an ASP.NET 2.0 application that uses master pages. I have some pages that must not be cached on the client. In ASP.NET 1.1 I achieved this using metatags: <meta...
2
by: Bruno Alexandre | last post by:
Hi guys, I built a online Portal that shows results, stock managment, etc... but same pages take long time to display because they are getting the results from the Database. to make it faster...
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...
4
by: 6kjfsyg02 | last post by:
I am trying to keep some cached information across several SoapExtensions: In my project there are client applications (web and console) that ask a web service. The web service is also mine. But...
12
by: Mel | last post by:
I have a page with a <DIVthat gets updated every 10 seconds. The problem is that unless the browser is configured to get new pages at all times, it displays the page from cache. Is there a way...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
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
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...
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.