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

Weird caching behavior?

My development system and the production system run the same basic pages, as
you would guess. After I browse the production site and then switch to my
development site, using IE 6.0, for some reason the javascript for my menu
still thinks I'm on the production site and any menu items that I press go
to the production site instead of development.

In case you are thinking that it's a browser caching issue, I just tested
with Netscape and get the same results.

There is one thing that seems to correct the problem, and that is to put my
system into debug mode and back out again. But as soon as I go back to the
production server, then back to my dev server in the browser, same problem.
All menu links go back to production from the dev home page. Then I have to
put it back into debug and out again, then the link go back to the correct
server.

Has anyone else had this problem? I hope I'm explaining this well enough...

Andrea
Nov 19 '05 #1
2 1054
A little more info here:

All pages have two the 'no-cache' and 'expires' meta tags.

The site name for the javascript is supposed to get set in the BaseCommon
class of the site which come from the Web.Config file.

My dev system is Win2K and has been updated by MS Update. I can't remember
having this problem when I was on the Win2003 Server. (I had other problems
though and went back to Win2K).

Andrea
"Andrea L. Williams" <an*******@hotIHateSpammail.com> wrote in message
news:eB**************@TK2MSFTNGP15.phx.gbl...
My development system and the production system run the same basic pages, as you would guess. After I browse the production site and then switch to my
development site, using IE 6.0, for some reason the javascript for my menu
still thinks I'm on the production site and any menu items that I press go
to the production site instead of development.

In case you are thinking that it's a browser caching issue, I just tested
with Netscape and get the same results.

There is one thing that seems to correct the problem, and that is to put my system into debug mode and back out again. But as soon as I go back to the production server, then back to my dev server in the browser, same problem. All menu links go back to production from the dev home page. Then I have to put it back into debug and out again, then the link go back to the correct
server.

Has anyone else had this problem? I hope I'm explaining this well enough...
Andrea


Nov 19 '05 #2
Andrea L. Williams wrote:
A little more info here:

All pages have two the 'no-cache' and 'expires' meta tags.

The site name for the javascript is supposed to get set in the
BaseCommon class of the site which come from the Web.Config file.

My dev system is Win2K and has been updated by MS Update. I can't
remember having this problem when I was on the Win2003 Server. (I
had other problems though and went back to Win2K).


META tags are all but useless to prevent caching. You must use proper
HTTP constructs such as Cache-Control headers. You can control them
using the System.Web.HttpCachePolicy class.

Cheers,

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

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

Similar topics

0
by: quique | last post by:
Hi I,m gonna explain my scenario problem: I've got an user control that i want to cache in diferent pages attending to the value of a parameter x, to make t possible i put the next directive in...
0
by: Martin | last post by:
Hi. I had a very frustrating afternoon and evening but I have got it all under control now so all of a sudden I am in a good mood. I want to share some insights on output caching with you lot. ...
1
by: Kikoz | last post by:
Hi all. Does anyone know what the following compilation error means? Line 1: //------------------------------------------------------------------------------ Line 2: // <autogenerated>...
3
by: Joe Fallon | last post by:
I have a page in ASP.Net 1.1 which contains an image control. I set the ImageUrl property = "MyImageViewerPage.aspx" This page acts as an image handler. I have an array of bytes which I send to...
1
by: ted benedict | last post by:
hello everybody, this is my goal: - read out a text input and display it on the page somewhere else... (easy..) and the cache setting is like this: - look for newer versions of stored pages...
2
by: J055 | last post by:
Hi I've implemented caching for my ObjectDataSource. <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" EnableCaching="True" CacheDuration="10" CacheExpirationPolicy="Sliding" ...
0
by: Tom | last post by:
I'm pretty sure this is an unusual case and I suspect it has as much to do with what the browser is doing as it does PHP on the server, but the behavior defies anything I would have expected. What...
12
by: =?Utf-8?B?RGF2ZQ==?= | last post by:
I'm using ASP.Net with an UpdatePanel. When the screen is exercised via a Web Test, the Web Test shows that the AJAX scripts are downloaded for every partial post back. My impression was that...
2
by: Ken Fine | last post by:
I have a question about ASP.NET output caching. I want to use screen scraping as a temporary hack to pull in some complex Classic ASP-rendered content into some ASP.NET pages: protected String...
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: 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$) { } ...
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
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,...
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,...

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.