473,785 Members | 2,388 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1071
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*******@hotI HateSpammail.co m> wrote in message
news:eB******** ******@TK2MSFTN GP15.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.Http CachePolicy class.

Cheers,

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

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

Similar topics

0
1061
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 the definition of the control <%@ OutputCache Duration="50" VaryByParam="x"%> I,ve got two pages (page1in and page2in) that submits to
0
2136
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. After looking at the use of the OutputCache directive and tinkering with it a bit I found its usability.very limited. Think of it: it is okay for static content. Well that's nice but no big deal. Static content is cheap anyway, the file system...
1
1352
by: Kikoz | last post by:
Hi all. Does anyone know what the following compilation error means? Line 1: //------------------------------------------------------------------------------ Line 2: // <autogenerated> Line 3: // This code was generated by a tool. Line 4: // Runtime Version: 1.1.4322.2032 Line 5: //
3
1435
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 the browser using BinaryWrite. e.g. Response.ContentType = mVar.contenttype Response.BinaryWrite(mVar.MyBytes)
1
1228
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 "automatically". (in tools/internet options/temporary internet files/settings)
2
6270
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" SelectMethod="GetUsers" TypeName="BizObject"></asp:ObjectDataSource> This works, however I need to explicitly clear/remove the cache when I
0
1112
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 happened: I have a script that depends on sessions to pass some data between pages. If register_globals is on, the session fails for reasons I've explained here: ...
12
2081
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 IE would cache these scripts so that the AJAX script download would only occur once. What am I missing?
2
1840
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 ReadHtmlPage(string url) { WebResponse objResponse; WebRequest objRequest = System.Net.HttpWebRequest.Create(url); objResponse = objRequest.GetResponse();
0
9647
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9491
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10163
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10104
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5397
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5532
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4063
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3668
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.