473,397 Members | 2,099 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,397 software developers and data experts.

ASP.Net Caching

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?
Jul 25 '08 #1
12 2031
"Dave" <da****@nospam.nospamwrote in message
news:0A**********************************@microsof t.com...
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?

Use fiddler to see what is present in the request/response exchanges between
IE and web server.

Are the scripts coming from a folder or a webresource ?

Do the JS resources come with Last-Modified and ETag headers and do they
have an Expires header set in the future? What is specified in the
Cache-Control header coming from the server?

What is IE sending in its request for these resouces, is a If-Modified-Since
header and/or a If-None-Match match header present?

Is IE caching other resouces as expected? Is the temporary internet files
setting on automatic?

There was a bug in IE cache handling (I haven't tested it recently) when the
ETag of a resource changed but the Last-Modified hasn't (on IIS this can
happen when some values in the metabase are changed), IIS responds with a
full 200 response but IE doesn't cache the item with the new ETag because
the Last-Modified date is the same as the existing cached resource.

--
Anthony Jones - MVP ASP/ASP.NET
Jul 26 '08 #2
Hi Dave,

From your description, the "Caching" you mentioned here is the cache of the
AJAX client script rather than ASP.NET server-side output cache, correct?

As for client-side scripts or other static resource's caching, it mostly
depend on the client-browser's interpretion of the resources(whether it
detect any change in the url or the httpheader's last modified value
changed). Also, there is specific configuration in client browser to
customize it. For example, you can change the behavior in IE via the
following setting:

**Tools-->internet options---"General Tab"

**In the "Browsing history" section, click " Settings" button

You'll find the "check for newer versions for the stored page" item

Also, for the behavior you saw, I suspect that whether it is also related
to the webtest tools which may generate some additional header or url
querystring which make the server-side emit different script url for the
AJAX script. This may also make the client browser think the file need
update. Anyway, you can use "Web Development Helper" tool to watch the
behavior when you manually do postback operations on the AJAX page. Based
on my test, for normal AJAX postback, the script resoures are not download
everytime.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: =?Utf-8?B?RGF2ZQ==?= <da****@nospam.nospam>
Subject: ASP.Net Caching
Date: Fri, 25 Jul 2008 11:39:01 -0700
>
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?
Jul 28 '08 #3
Hi Dave,

Have you got any progress on this issue or does the suggestion in previous
message help some?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>Content-Transfer-Encoding: 7bit
From: st*****@online.microsoft.com (Steven Cheng [MSFT])
Organization: Microsoft
Date: Mon, 28 Jul 2008 03:46:54 GMT
Subject: RE: ASP.Net Caching
>Hi Dave,

From your description, the "Caching" you mentioned here is the cache of
the
>AJAX client script rather than ASP.NET server-side output cache, correct?

As for client-side scripts or other static resource's caching, it mostly
depend on the client-browser's interpretion of the resources(whether it
detect any change in the url or the httpheader's last modified value
changed). Also, there is specific configuration in client browser to
customize it. For example, you can change the behavior in IE via the
following setting:

**Tools-->internet options---"General Tab"

**In the "Browsing history" section, click " Settings" button

You'll find the "check for newer versions for the stored page" item

Also, for the behavior you saw, I suspect that whether it is also related
to the webtest tools which may generate some additional header or url
querystring which make the server-side emit different script url for the
AJAX script. This may also make the client browser think the file need
update. Anyway, you can use "Web Development Helper" tool to watch the
behavior when you manually do postback operations on the AJAX page. Based
on my test, for normal AJAX postback, the script resoures are not download
everytime.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

================================================= =
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ault.aspx#noti
f
>ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
================================================= =
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>>From: =?Utf-8?B?RGF2ZQ==?= <da****@nospam.nospam>
Subject: ASP.Net Caching
Date: Fri, 25 Jul 2008 11:39:01 -0700
>>
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?

Jul 30 '08 #4
Thank you for the excellent response.

Yes, my question pertains to the caching of the AJAX scripts on the client.

Regarding the "check for newer versions for the stored page" setting, when
it is set to "Never", the AJAX scripts are NOT downloaded everytime.
Otherwise, they seem to be. What setting do you recommend?

I'll try the Web Development Helper when I return from vacation.

Thanks!
"Steven Cheng [MSFT]" wrote:
Hi Dave,

Have you got any progress on this issue or does the suggestion in previous
message help some?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Content-Transfer-Encoding: 7bit
From: st*****@online.microsoft.com (Steven Cheng [MSFT])
Organization: Microsoft
Date: Mon, 28 Jul 2008 03:46:54 GMT
Subject: RE: ASP.Net Caching
Hi Dave,

From your description, the "Caching" you mentioned here is the cache of
the
AJAX client script rather than ASP.NET server-side output cache, correct?

As for client-side scripts or other static resource's caching, it mostly
depend on the client-browser's interpretion of the resources(whether it
detect any change in the url or the httpheader's last modified value
changed). Also, there is specific configuration in client browser to
customize it. For example, you can change the behavior in IE via the
following setting:

**Tools-->internet options---"General Tab"

**In the "Browsing history" section, click " Settings" button

You'll find the "check for newer versions for the stored page" item

Also, for the behavior you saw, I suspect that whether it is also related
to the webtest tools which may generate some additional header or url
querystring which make the server-side emit different script url for the
AJAX script. This may also make the client browser think the file need
update. Anyway, you can use "Web Development Helper" tool to watch the
behavior when you manually do postback operations on the AJAX page. Based
on my test, for normal AJAX postback, the script resoures are not download
everytime.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ault.aspx#noti
f
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: =?Utf-8?B?RGF2ZQ==?= <da****@nospam.nospam>
Subject: ASP.Net Caching
Date: Fri, 25 Jul 2008 11:39:01 -0700
>
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?

Jul 31 '08 #5
Thank you for the comprehensive list of things to try. I will try them when
I'm back from vacation. Thanks again!

"Anthony Jones" wrote:
"Dave" <da****@nospam.nospamwrote in message
news:0A**********************************@microsof t.com...
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?


Use fiddler to see what is present in the request/response exchanges between
IE and web server.

Are the scripts coming from a folder or a webresource ?

Do the JS resources come with Last-Modified and ETag headers and do they
have an Expires header set in the future? What is specified in the
Cache-Control header coming from the server?

What is IE sending in its request for these resouces, is a If-Modified-Since
header and/or a If-None-Match match header present?

Is IE caching other resouces as expected? Is the temporary internet files
setting on automatic?

There was a bug in IE cache handling (I haven't tested it recently) when the
ETag of a resource changed but the Last-Modified hasn't (on IIS this can
happen when some values in the metabase are changed), IIS responds with a
full 200 response but IE doesn't cache the item with the new ETag because
the Last-Modified date is the same as the existing cached resource.

--
Anthony Jones - MVP ASP/ASP.NET
Jul 31 '08 #6
Hi

Omar has a great post on script loading... check it out...

http://weblogs.asp.net/omarzabir/arc...-in-batch.aspx

it might help you...

Best of luck

Munna
Jul 31 '08 #7
Thanks for your reply Dave,

As for the setting in browser, I think the default "Automatically" would be
ok.

Also, enjoy your vacation, and welcome to post here when you come back on
this again.

Sincerely,

Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: =?Utf-8?B?RGF2ZQ==?= <da****@nospam.nospam>
References: <0A**********************************@microsoft.co m>
<Fn**************@TK2MSFTNGHUB02.phx.gbl>
<z3**************@TK2MSFTNGHUB02.phx.gbl>
>Subject: RE: ASP.Net Caching
Date: Thu, 31 Jul 2008 08:21:01 -0700
>
Thank you for the excellent response.

Yes, my question pertains to the caching of the AJAX scripts on the client.

Regarding the "check for newer versions for the stored page" setting, when
it is set to "Never", the AJAX scripts are NOT downloaded everytime.
Otherwise, they seem to be. What setting do you recommend?

I'll try the Web Development Helper when I return from vacation.

Thanks!
"Steven Cheng [MSFT]" wrote:
>Hi Dave,

Have you got any progress on this issue or does the suggestion in
previous
>message help some?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
>>Subject: ASP.Net Caching
Date: Fri, 25 Jul 2008 11:39:01 -0700
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?

Aug 1 '08 #8
As you implied, when fiddler was used, it showed that the Microsoft
JavaScript files WERE cached.

Unfortunately, my JavaScripts, Images, and CSS files are not cached and I
would like them to. The remainder of this Email will address my files as
opposed to the AJAX files.

Regarding your questions:

a. Are the scripts coming from a folder or a webresource? My files are
obtained from a web folder.

b. Do the JS resources come with Last-Modified and ETag headers and do they
have an Expires header set in the future? What is specified in the
Cache-Control header coming from the server?

The Response Header from the JavaScript that ISN'T cached is:

HTTP/1.1 200 OK
Server: ASP.NET Development Server/9.0.0.0
Date: Tue, 05 Aug 2008 17:04:30 GMT
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: application/x-javascript
Content-Length: 1561
Connection: Close
The Response Header from the AJAX JavaScript that IS cached is:

HTTP/1.1 200 OK
Server: ASP.NET Development Server/9.0.0.0
Date: Tue, 05 Aug 2008 17:04:30 GMT
X-AspNet-Version: 2.0.50727
Content-Encoding: gzip
Cache-Control: public
Expires: Wed, 05 Aug 2009 17:03:49 GMT
Last-Modified: Thu, 08 May 2008 16:01:26 GMT
Content-Type: application/x-javascript
Content-Length: 6387
Connection: Close
c. What is IE sending in its request for these resouces, is a
If-Modified-Since
header and/or a If-None-Match match header present?

The Request header for the JavaScript that isn't cached is:

GET /MyProject/JavaScript/LinkButton.js HTTP/1.1
Accept: */*
Referer: http://MyPage.aspx
Accept-Language: en-us
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR
1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)
Proxy-Connection: Keep-Alive
Host: localhost.:2095

d. Is IE caching other resouces as expected? Is the temporary internet files
setting on automatic?

Yes, the AJAX files are being cached. The temporary internet files is set
to automatic.

Again, thanks for your help with this!
"Dave" wrote:
Thank you for the comprehensive list of things to try. I will try them when
I'm back from vacation. Thanks again!

"Anthony Jones" wrote:
"Dave" <da****@nospam.nospamwrote in message
news:0A**********************************@microsof t.com...
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?

Use fiddler to see what is present in the request/response exchanges between
IE and web server.

Are the scripts coming from a folder or a webresource ?

Do the JS resources come with Last-Modified and ETag headers and do they
have an Expires header set in the future? What is specified in the
Cache-Control header coming from the server?

What is IE sending in its request for these resouces, is a If-Modified-Since
header and/or a If-None-Match match header present?

Is IE caching other resouces as expected? Is the temporary internet files
setting on automatic?

There was a bug in IE cache handling (I haven't tested it recently) when the
ETag of a resource changed but the Last-Modified hasn't (on IIS this can
happen when some values in the metabase are changed), IIS responds with a
full 200 response but IE doesn't cache the item with the new ETag because
the Last-Modified date is the same as the existing cached resource.

--
Anthony Jones - MVP ASP/ASP.NET

Aug 5 '08 #9
"Dave" <da****@nospam.nospamwrote in message
news:C7**********************************@microsof t.com...
As you implied, when fiddler was used, it showed that the Microsoft
JavaScript files WERE cached.

Unfortunately, my JavaScripts, Images, and CSS files are not cached and I
would like them to. The remainder of this Email will address my files as
opposed to the AJAX files.

Regarding your questions:

a. Are the scripts coming from a folder or a webresource? My files are
obtained from a web folder.

b. Do the JS resources come with Last-Modified and ETag headers and do
they
have an Expires header set in the future? What is specified in the
Cache-Control header coming from the server?

The Response Header from the JavaScript that ISN'T cached is:

HTTP/1.1 200 OK
Server: ASP.NET Development Server/9.0.0.0
Date: Tue, 05 Aug 2008 17:04:30 GMT
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: application/x-javascript
Content-Length: 1561
Connection: Close
The Response Header from the AJAX JavaScript that IS cached is:

HTTP/1.1 200 OK
Server: ASP.NET Development Server/9.0.0.0
Date: Tue, 05 Aug 2008 17:04:30 GMT
X-AspNet-Version: 2.0.50727
Content-Encoding: gzip
Cache-Control: public
Expires: Wed, 05 Aug 2009 17:03:49 GMT
Last-Modified: Thu, 08 May 2008 16:01:26 GMT
Content-Type: application/x-javascript
Content-Length: 6387
Connection: Close
c. What is IE sending in its request for these resouces, is a
If-Modified-Since
header and/or a If-None-Match match header present?

The Request header for the JavaScript that isn't cached is:

GET /MyProject/JavaScript/LinkButton.js HTTP/1.1
Accept: */*
Referer: http://MyPage.aspx
Accept-Language: en-us
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR
1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)
Proxy-Connection: Keep-Alive
Host: localhost.:2095

d. Is IE caching other resouces as expected? Is the temporary internet
files
setting on automatic?

Yes, the AJAX files are being cached. The temporary internet files is set
to automatic.

Again, thanks for your help with this!

First thing I would do is test this with IIS not the development server.

Developement server is fine for quick testing of .NET code etc but its not
something you would use to test the general Request/Response behaviour the
site proper.

I think you'll find things work fine under IIS.
--
Anthony Jones - MVP ASP/ASP.NET
Aug 6 '08 #10
Using IIS on a separate machine worked as expected. Thanks!

"Anthony Jones" wrote:
"Dave" <da****@nospam.nospamwrote in message
news:C7**********************************@microsof t.com...
As you implied, when fiddler was used, it showed that the Microsoft
JavaScript files WERE cached.

Unfortunately, my JavaScripts, Images, and CSS files are not cached and I
would like them to. The remainder of this Email will address my files as
opposed to the AJAX files.

Regarding your questions:

a. Are the scripts coming from a folder or a webresource? My files are
obtained from a web folder.

b. Do the JS resources come with Last-Modified and ETag headers and do
they
have an Expires header set in the future? What is specified in the
Cache-Control header coming from the server?

The Response Header from the JavaScript that ISN'T cached is:

HTTP/1.1 200 OK
Server: ASP.NET Development Server/9.0.0.0
Date: Tue, 05 Aug 2008 17:04:30 GMT
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: application/x-javascript
Content-Length: 1561
Connection: Close
The Response Header from the AJAX JavaScript that IS cached is:

HTTP/1.1 200 OK
Server: ASP.NET Development Server/9.0.0.0
Date: Tue, 05 Aug 2008 17:04:30 GMT
X-AspNet-Version: 2.0.50727
Content-Encoding: gzip
Cache-Control: public
Expires: Wed, 05 Aug 2009 17:03:49 GMT
Last-Modified: Thu, 08 May 2008 16:01:26 GMT
Content-Type: application/x-javascript
Content-Length: 6387
Connection: Close
c. What is IE sending in its request for these resouces, is a
If-Modified-Since
header and/or a If-None-Match match header present?

The Request header for the JavaScript that isn't cached is:

GET /MyProject/JavaScript/LinkButton.js HTTP/1.1
Accept: */*
Referer: http://MyPage.aspx
Accept-Language: en-us
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR
1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)
Proxy-Connection: Keep-Alive
Host: localhost.:2095

d. Is IE caching other resouces as expected? Is the temporary internet
files
setting on automatic?

Yes, the AJAX files are being cached. The temporary internet files is set
to automatic.

Again, thanks for your help with this!


First thing I would do is test this with IIS not the development server.

Developement server is fine for quick testing of .NET code etc but its not
something you would use to test the general Request/Response behaviour the
site proper.

I think you'll find things work fine under IIS.
--
Anthony Jones - MVP ASP/ASP.NET
Aug 8 '08 #11
"Automatically" is working well. Also found that running IIS from a
different machine (independently of the Webtest) solved the problem. Thanks
a ton!

"Steven Cheng [MSFT]" wrote:
Thanks for your reply Dave,

As for the setting in browser, I think the default "Automatically" would be
ok.

Also, enjoy your vacation, and welcome to post here when you come back on
this again.

Sincerely,

Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
From: =?Utf-8?B?RGF2ZQ==?= <da****@nospam.nospam>
References: <0A**********************************@microsoft.co m>
<Fn**************@TK2MSFTNGHUB02.phx.gbl>
<z3**************@TK2MSFTNGHUB02.phx.gbl>
Subject: RE: ASP.Net Caching
Date: Thu, 31 Jul 2008 08:21:01 -0700

Thank you for the excellent response.

Yes, my question pertains to the caching of the AJAX scripts on the client.

Regarding the "check for newer versions for the stored page" setting, when
it is set to "Never", the AJAX scripts are NOT downloaded everytime.
Otherwise, they seem to be. What setting do you recommend?

I'll try the Web Development Helper when I return from vacation.

Thanks!
"Steven Cheng [MSFT]" wrote:
Hi Dave,

Have you got any progress on this issue or does the suggestion in
previous
message help some?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

Subject: ASP.Net Caching
Date: Fri, 25 Jul 2008 11:39:01 -0700


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?





Aug 8 '08 #12
Thanks for your followup Dave.

I'm glad that it works.

Have a nice day!

Sincerely,

Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>Subject: RE: ASP.Net Caching
Date: Fri, 8 Aug 2008 11:45:00 -0700
>
"Automatically" is working well. Also found that running IIS from a
different machine (independently of the Webtest) solved the problem.
Thanks
>a ton!

"Steven Cheng [MSFT]" wrote:
>Thanks for your reply Dave,

As for the setting in browser, I think the default "Automatically" would
be
>ok.

Also, enjoy your vacation, and welcome to post here when you come back
on
>this again.

Sincerely,

Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments
and
>suggestions about how we can improve the support we provide to you.
Please
>feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

================================================= =
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
>ications.

================================================= =
This posting is provided "AS IS" with no warranties, and confers no
rights.
>--------------------
>From: =?Utf-8?B?RGF2ZQ==?= <da****@nospam.nospam>
References: <0A**********************************@microsoft.co m>
<Fn**************@TK2MSFTNGHUB02.phx.gbl>
<z3**************@TK2MSFTNGHUB02.phx.gbl>
>Subject: RE: ASP.Net Caching
Date: Thu, 31 Jul 2008 08:21:01 -0700
>
Thank you for the excellent response.

Yes, my question pertains to the caching of the AJAX scripts on the
client.
>
Regarding the "check for newer versions for the stored page" setting,
when
>it is set to "Never", the AJAX scripts are NOT downloaded everytime.
Otherwise, they seem to be. What setting do you recommend?

I'll try the Web Development Helper when I return from vacation.

Thanks!
"Steven Cheng [MSFT]" wrote:

Hi Dave,

Have you got any progress on this issue or does the suggestion in
previous
>message help some?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

Subject: ASP.Net Caching
Date: Fri, 25 Jul 2008 11:39:01 -0700
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?


Aug 11 '08 #13

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

Similar topics

15
by: olle | last post by:
Hi folks. I learning asp.net and compare it with traditional asp and Access-developing. The issue is this one: 1/I have this Ms Acceess adp-project application that works fine on my Ms Sql...
1
by: moko | last post by:
I want to know whether 'dataset caching' is at the client end , or the server ? Similarly is an aspx page caching at the server or client ? Are there any 'gotchas' with caching ?
0
by: Troy Simpson | last post by:
Hi, I have a website which is made up of dynamic pages. Each page that's loaded has some code which looks at which template to load amongst other things, which causes the page to take a little...
3
by: Janaka | last post by:
Hi All, I'm having a problem with Page Output caching on a page that contains a DataGrid. Basically the page pulls up some data for sales information from the DB. Some of this has to be...
1
by: Leo Muller | last post by:
I am impressed by the caching performance of .NET. However, there is one major obstacle that I haven't managed to solve yet. What I want to do is the following: I have a normal site, and a...
3
by: DC | last post by:
Hi, (ASP.Net 1.1) is it possible to (programmatically and globally) deactivate page fragment caching? We have only two scenarios, development stage where we want caching off and testing where we...
5
by: Raj | last post by:
What is the purpose of file system caching while creating a tablespace? Memory on the test server gets used up pretty quickly after a user executes a complex query(database is already activated),...
2
by: George1776 | last post by:
All, I've recently upgraded our production ASP.NET/C# application from framework 1.1 to 2.0. Since then I've been plagued by out-of-memory errors and problems with the cache object (which may...
0
by: jason | last post by:
hi experts, support.microsoft.com/kb/917072 and http://msdn.microsoft.com/msdnmag/issues/06/07/WebAppFollies/ As pointed out in these articles, users might get session variables belong to...
4
by: Hermann | last post by:
My site is a bit slow showing the main page so I thought caching query result in PHP will improve performace. Then I read MySQL documentation and saw that MySQL does have a caching feature. So......
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: 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
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
0
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...

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.