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

Caching and Filter?

I have a Response.Filter set.

Will it affect caching (by ASP.NET) of my page?

Basically the question is caching happens before or after filtering?

My understanding ,because partial caching is possible, it happens before
filtering.

Thanks.
George.

Nov 17 '05 #1
3 1327
Hi George,

I am sorry if there is any misunderstanding.

To my knowledge, even if the caching features on a web page was turned on,
the initial HTTP GET request for the page serves as normal, and then the
dynamic content of this web page will be placed in the output cache. That
is, the Response.Filter should apply to the output for the first HTTP
request to a cache-enabled web page. As for the subsequent HTTP request for
the same web page, the cache mechanism will serve them. Of course, the
contents in the cache are the filtered contents.

Please let me know if it helps.

Best regards,

Jacob Yang
Microsoft Online Partner Support
Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 17 '05 #2
Thanks, I am still not clear
Let say I have a user control on a page with a directive
<%@ OutputCache Duration="120">

I have a Response.Filter set to my custom filter (replaces @First@ to actual
customer name).
So first request will cache the output of the user control.

Will second request (from another customer) take the cached output of the
control and pass it through the Filter (so @First@ will be replaced to
another name)?
Thanks.
George.

"Jacob Yang [MSFT]" <ji***@online.microsoft.com> wrote in message
news:r$**************@cpmsftngxa06.phx.gbl...
Hi George,

I am sorry if there is any misunderstanding.

To my knowledge, even if the caching features on a web page was turned on,
the initial HTTP GET request for the page serves as normal, and then the
dynamic content of this web page will be placed in the output cache. That
is, the Response.Filter should apply to the output for the first HTTP
request to a cache-enabled web page. As for the subsequent HTTP request for the same web page, the cache mechanism will serve them. Of course, the
contents in the cache are the filtered contents.

Please let me know if it helps.

Best regards,

Jacob Yang
Microsoft Online Partner Support
Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 17 '05 #3
Hi George,

The Filter property will be implemented after cache. In other words,
@First@ will be replaced with other name according the second request.

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 17 '05 #4

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

Similar topics

1
by: Don Grover | last post by:
What would be the norm for caching asp pages with an ec-commerce site. What im after is should i set the cach directives to different types for the different types of pages in an asp /sql...
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...
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: Meron Lavie | last post by:
We have written an asp.net app, which is apparently being cached by various British ISP's, and this is recking havoc with our app, as the proxy servers apparently are disregarding the session id...
0
by: Rick Hein | last post by:
I've got a problem with an app I've been working on, the Caching object and events not firing correctly. In a nutshell: When I'm debugging, and I set a breakpoint in the removed item call back, the...
0
by: kurt.craver | last post by:
I have a component control that I created as a UserControl which contains a SqlDataSource control, a GridView control, a DropDownList control, a TextBox control, and a Button control. The idea is...
0
by: deja | last post by:
if my webmethod parameter is an object, it doesn't seem to cache the output even though the xml serialised version of this object is the same as the previous call. Is this right? if I call the...
0
by: itfetish | last post by:
We have a web parts intranet at our office here I have been working on. I have been trying to create a way of getting our OCE TDS 600 plotter queue to be a web part on the page, seeing as their...
2
by: pechar | last post by:
Hi all, I am using a web service to retrieve data from a remote foxpro database for an ecommerce database. Practically all data except static content will be retrieved through this web service. I...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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: 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
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
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.