473,468 Members | 1,358 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

.NET|Issue with .aspx pages caching at Server side

Hi All,

In our Web hosting environment we are using Virtual hosting i.e. multiple
websites are on one server and multiple domains are pointing to a single
website.

Issue: We have two domains say “www.Test1.com” and “www.Test2.com” pointing
to a single website. Website content is located onto UNCPath i.e. remote
location.
Domain 1: www.Test1.com points to \\servername\websitefolder\homedirectory
Domain 2: www.Test2.com points to \\servername\websitefolder\homepage
Both the domains are having separate “default.aspx” page at their UNCPath
which is referring to the separate XML file with the same name i.e.
“count.xml”.Our “Default.aspx” page is reading value from xml file and
displaying.The common code behind class is stored in the GAC.

When we are browsing both the page simultaneously from different servers and
refresh these pages in a short duration i.e. less than 15 seconds. Both the
pages start reading from the same XML file and display same data.

1.) We would like to know if this is server side caching ,can we
reduce/change the phenomenon of the refreshing of the .aspx pages.
2.) If the Namespace of both the .aspx page is the same then their will be
common compiled file of both the pages in the website cache location i.e.
Windows\Microsoft.Net\Framework\Version\TemporaryA SP.NETFiles\<Website>
folder.

Please give us some inputs/suggestions to resolve the problem at the earliest.

Thanks,
Purti Malhotra

Jul 6 '06 #1
3 2929
cp

Purti Malhotra wrote:
Hi All,

In our Web hosting environment we are using Virtual hosting i.e. multiple
websites are on one server and multiple domains are pointing to a single
website.

Issue: We have two domains say "www.Test1.com" and "www.Test2.com" pointing
to a single website. Website content is located onto UNCPath i.e. remote
location.
Domain 1: www.Test1.com points to \\servername\websitefolder\homedirectory
Domain 2: www.Test2.com points to \\servername\websitefolder\homepage
Both the domains are having separate "default.aspx" page at their UNCPath
which is referring to the separate XML file with the same name i.e.
"count.xml".Our "Default.aspx" page is reading value from xml file and
displaying.The common code behind class is stored in the GAC.

When we are browsing both the page simultaneously from different servers and
refresh these pages in a short duration i.e. less than 15 seconds. Both the
pages start reading from the same XML file and display same data.

1.) We would like to know if this is server side caching ,can we
reduce/change the phenomenon of the refreshing of the .aspx pages.
2.) If the Namespace of both the .aspx page is the same then their will be
common compiled file of both the pages in the website cache location i.e.
Windows\Microsoft.Net\Framework\Version\TemporaryA SP.NETFiles\<Website>
folder.

Please give us some inputs/suggestions to resolve the problem at the earliest.

Thanks,
Purti Malhotra
have you specified that you dont want caching on the client side? Using
something like ...
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="pragma" content="no-cache">

cp

Jul 6 '06 #2

Hello CP,
Thanks for taking interest in my issue ......No i haven't done any client
side caching...its not an issue of client side caching because i have tried
to browse both the domains from different machine.......and it gives the same
problem ...
Had few thought on it and analysised :
ASP.NET compiles the ASPX page the first time the user requests it and then
stores it into its cache. Next time around ASP.NET checks the cache to see if
the copy of the page exists. In case it cannot find one, it creates a
temporary source code file that represents the Page class. It puts it in the
temporary ASP.NET files folder that exists inside the
Windows\Microsoft.Net\Framework\Version\TemporaryA SP.NETFiles\<Website>
folder.
Questions

1.) We would like to know if this is server side caching, can we
reduce/change the phenomenon of the refreshing of the .aspx pages.

2.) If we have two .aspx pages in a same website with the same name having
the same “Inherits” value i.e. used to associate a code-behind source file
with a Web page then there will be one compiled file at a time in the
Temporary ASP.NET files folder onto Web server.

Please let me kow if u have thoughts on it and answers to above questiions


"cp" wrote:
>
Purti Malhotra wrote:
Hi All,

In our Web hosting environment we are using Virtual hosting i.e. multiple
websites are on one server and multiple domains are pointing to a single
website.

Issue: We have two domains say "www.Test1.com" and "www.Test2.com" pointing
to a single website. Website content is located onto UNCPath i.e. remote
location.
Domain 1: www.Test1.com points to \\servername\websitefolder\homedirectory
Domain 2: www.Test2.com points to \\servername\websitefolder\homepage
Both the domains are having separate "default.aspx" page at their UNCPath
which is referring to the separate XML file with the same name i.e.
"count.xml".Our "Default.aspx" page is reading value from xml file and
displaying.The common code behind class is stored in the GAC.

When we are browsing both the page simultaneously from different servers and
refresh these pages in a short duration i.e. less than 15 seconds. Both the
pages start reading from the same XML file and display same data.

1.) We would like to know if this is server side caching ,can we
reduce/change the phenomenon of the refreshing of the .aspx pages.
2.) If the Namespace of both the .aspx page is the same then their will be
common compiled file of both the pages in the website cache location i.e.
Windows\Microsoft.Net\Framework\Version\TemporaryA SP.NETFiles\<Website>
folder.

Please give us some inputs/suggestions to resolve the problem at the earliest.

Thanks,
Purti Malhotra

have you specified that you dont want caching on the client side? Using
something like ...
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="pragma" content="no-cache">

cp

Jul 6 '06 #3
cp
Server ... you could try
<%@ OutputCache Duration="0" Location="None" VaryByParam="none" %or
Response.Cache.SetCacheability(HttpCacheability.No Cache);

That should prevent the caching - good luck!
Purti Malhotra wrote:
Hello CP,
Thanks for taking interest in my issue ......No i haven't done any client
side caching...its not an issue of client side caching because i have tried
to browse both the domains from different machine.......and it gives the same
problem ...
Had few thought on it and analysised :
ASP.NET compiles the ASPX page the first time the user requests it and then
stores it into its cache. Next time around ASP.NET checks the cache to see if
the copy of the page exists. In case it cannot find one, it creates a
temporary source code file that represents the Page class. It puts it in the
temporary ASP.NET files folder that exists inside the
Windows\Microsoft.Net\Framework\Version\TemporaryA SP.NETFiles\<Website>
folder.
Questions

1.) We would like to know if this is server side caching, can we
reduce/change the phenomenon of the refreshing of the .aspx pages.

2.) If we have two .aspx pages in a same website with the same name having
the same "Inherits" value i.e. used to associate a code-behind source file
with a Web page then there will be one compiled file at a time in the
Temporary ASP.NET files folder onto Web server.

Please let me kow if u have thoughts on it and answers to above questiions


"cp" wrote:

Purti Malhotra wrote:
Hi All,
>
In our Web hosting environment we are using Virtual hosting i.e. multiple
websites are on one server and multiple domains are pointing to a single
website.
>
Issue: We have two domains say "www.Test1.com" and "www.Test2.com" pointing
to a single website. Website content is located onto UNCPath i.e. remote
location.
Domain 1: www.Test1.com points to \\servername\websitefolder\homedirectory
Domain 2: www.Test2.com points to \\servername\websitefolder\homepage
Both the domains are having separate "default.aspx" page at their UNCPath
which is referring to the separate XML file with the same name i.e.
"count.xml".Our "Default.aspx" page is reading value from xml file and
displaying.The common code behind class is stored in the GAC.
>
When we are browsing both the page simultaneously from different servers and
refresh these pages in a short duration i.e. less than 15 seconds. Both the
pages start reading from the same XML file and display same data.
>
1.) We would like to know if this is server side caching ,can we
reduce/change the phenomenon of the refreshing of the .aspx pages.
2.) If the Namespace of both the .aspx page is the same then their will be
common compiled file of both the pages in the website cache location i.e.
Windows\Microsoft.Net\Framework\Version\TemporaryA SP.NETFiles\<Website>
folder.
>
Please give us some inputs/suggestions to resolve the problem at the earliest.
>
Thanks,
Purti Malhotra
have you specified that you dont want caching on the client side? Using
something like ...
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="pragma" content="no-cache">

cp
Jul 6 '06 #4

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

Similar topics

10
by: Don Munroe | last post by:
This one has me stumped. I have three web applications running on two different servers. The first that works fine is hosted by a .Net hosting company. Everyone that uses it has no problems...
14
by: el_sid | last post by:
Our developers have experienced a problem with updating Web References in Visual Studio.NET 2003. Normally, when a web service class (.asmx) is created, updating the Web Reference will...
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...
3
by: nashak | last post by:
Hello, ASP.NET pages are disconnected html pages i.e once page is sent to the browser, that is it. Let's say that I have a datagrid on my page and I have used a dataset to fill this grid only...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
0
by: shamirza | last post by:
What is view state and use of it? The current property settings of an ASP.NET page and those of any ASP.NET server controls contained within the page. ASP.NET can detect when a form is requested...
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...
5
by: =?Utf-8?B?dXNmaW5lY2F0cw==?= | last post by:
I'm new to asp.net. I'm trying to follow the tutorial walkthroughs and have got a few done. Now I'm doing the one about validating input, and I've run into some problems. In particular, I am...
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,...
1
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
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...
0
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 ...

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.