473,386 Members | 1,795 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.

Metabase, CacheControlCustom and ASPNET 2.0

I have a problem with cache headers which I cannot track down. We are running
IIS6 on Windows Server 2003 and ASP.NET 2.0.

Our application has an installer which sets up our caching options in the
metabase - specifically it sets HttpExpires="D, 0" and
CacheControlCustom="no-cache" on the directory containing our web forms. In
IIS manager this shows up correctly (saying expires immediately).

For some specific web forms (aspx) within this directory we set explicit
values for HttpExpires and CacheControlCustom. These appear to work
correctly.

The problem is that the aspx pages which do not have explicit entries in the
metabase do not seem to inherit the cache settings from their parent
directory. These come out of IIS as having CacheControlCustom="private"
instead of "no-cache" as defined in the metabase.

Does anybody have any idea what might be causing this behaviour? I
understand that ASPNET gives aspx pages a default cachecontrol value of
private but how does this interact with the IIS metabase settings (does the
metabase setting get read in before the page is processed or after ASPNET has
produced it's output)?

One solution I can think of would be to set this programmatically for all
our aspx pages (which inherit from a base class) in ASPNET but how can I do
this while allowing the metabase cachecontrol to persist?

Many thanks for help on this issue!

May 19 '06 #1
0 2141

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

Similar topics

2
by: Keith | last post by:
I think we have a corrupt IIS metabase on our web cluster. The controller is replicating the problem to the members. What steps can we take to confirm our IIS metabase is intact? I would...
1
by: Roger | last post by:
I need to edit the IIS 6.0 config file (metabase.xml) and had a go with this code, trying to get a list of all defined websites, and write their name to console, but it does not seem to work, would...
4
by: Dave | last post by:
I'm creating a web app using VS 2005. When I run the app I receive the error, "Failed to access IIS metabase" How do I correct this problem? Thanks for you help.
5
by: David Veeneman | last post by:
I had to reformat my Windows XP Professional development machine yesterday and reinstall everything, including IIS and VS 2005. I thought I had worked out the procedure to get ASP.NET up and...
2
by: Kivak Wolf | last post by:
Hey all, First off, I know some people have had this problem, and I read their post. However, I am still clueless... =( Here's the problem: I have a local IIS on my computer which I am using...
1
by: Schemer | last post by:
Hello, I tried to load a web page from my local IIS, and got this error: ----------------------------- Failed to access IIS metabase. Description: An unhandled exception occurred during the...
2
by: =?Utf-8?B?SmliZXkgSmFjb2I=?= | last post by:
Hi: I'm getting this error when I try to browse to a .aspx page that is located on a virtual directory located on my Win XP Pro machine. There's more text in the page that is displayed that says...
0
by: Jason Huang | last post by:
Hi, In my C#.Net 2.0, if the http of the web is http://MyIP:9999/MyWebService/MyForm.aspx. What will be the metabase of my IIS6? In the C#.Net DirectoryService, how do I do the directory...
1
by: Jason Huang | last post by:
Hi, In my C#.Net 2.0, how do I get the metabase path in the IIS 6? Thanks for help. Jason
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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...

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.