|
Home > Archive > Commerce Server General > March 2004 > asp.net caching cs2k2
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
asp.net caching cs2k2
|
|
| Quinn Wilson 2004-03-20, 9:23 pm |
| Can someone give me some advice on how to employ asp.net caching of
cs2k2 content?
It occurs to me that if I add :
<%@ OutputCache Duration="120" VaryByParam="None" %>
to the top of one of my cs2k2 pages I will create a security/session
problem.
e.g if I connect (cookieless or it's my second page request) and I get
all my urls with the MSCSProfile appended and THAT content is added to
the Output cache, then the next person who connects will get the same
sessionid.
I'm thinking of something like if the client doesn't support session
cookies (CommerceContext.Current.AuthenticationInfo.SupportsSessionCookies==false)
then set HttpCachePolicy.HttpCacheability to NoCache...
Has anyone else explored this?
| |
| Willie Chiu 2004-03-22, 7:37 pm |
| Quinn,
We've experienced the same problem. You might want to instead store the
results of that page into cache instead of doing output caching.
Willie
"Quinn Wilson" <Quinn.Wilson@nygard.com> wrote in message
news:43724709.0403190912.701f31a3@posting.google.com...
> Can someone give me some advice on how to employ asp.net caching of
> cs2k2 content?
> It occurs to me that if I add :
>
> <%@ OutputCache Duration="120" VaryByParam="None" %>
>
> to the top of one of my cs2k2 pages I will create a security/session
> problem.
>
> e.g if I connect (cookieless or it's my second page request) and I get
> all my urls with the MSCSProfile appended and THAT content is added to
> the Output cache, then the next person who connects will get the same
> sessionid.
>
> I'm thinking of something like if the client doesn't support session
> cookies
(CommerceContext.Current.AuthenticationInfo. SupportsSessionCookies==false)
> then set HttpCachePolicy.HttpCacheability to NoCache...
> Has anyone else explored this?
| |
| Clayton C. Peddy 2004-03-23, 8:37 pm |
| Quinn,
On most sites, we use ASP.Net fragment caching or use the cache
programtically for CS content. In addition to the cookieless issue, the true
power of CS is through personalization and thus may require additional work
to provide the correct content display for the paticular user. For example,
a header may provide the user with the number of items in her cart, but she
may be viewing a product page that is the same for all users. Caching the
cart display header would probably produce little value, but caching the
product details of the page would have a high value.
Clayton
"Quinn Wilson" <Quinn.Wilson@nygard.com> wrote in message
news:43724709.0403190912.701f31a3@posting.google.com...
> Can someone give me some advice on how to employ asp.net caching of
> cs2k2 content?
> It occurs to me that if I add :
>
> <%@ OutputCache Duration="120" VaryByParam="None" %>
>
> to the top of one of my cs2k2 pages I will create a security/session
> problem.
>
> e.g if I connect (cookieless or it's my second page request) and I get
> all my urls with the MSCSProfile appended and THAT content is added to
> the Output cache, then the next person who connects will get the same
> sessionid.
>
> I'm thinking of something like if the client doesn't support session
> cookies
(CommerceContext.Current.AuthenticationInfo. SupportsSessionCookies==false)
> then set HttpCachePolicy.HttpCacheability to NoCache...
> Has anyone else explored this?
| |
| Willie Chiu 2004-03-23, 11:36 pm |
| Hey Clayton,
How's it going? Thanks for all your help!
Willie
"Clayton C. Peddy" <cpeddy@terrace.com> wrote in message
news:e6GCgpTEEHA.576@TK2MSFTNGP11.phx.gbl...
> Quinn,
>
> On most sites, we use ASP.Net fragment caching or use the cache
> programtically for CS content. In addition to the cookieless issue, the
true
> power of CS is through personalization and thus may require additional
work
> to provide the correct content display for the paticular user. For
example,
> a header may provide the user with the number of items in her cart, but
she
> may be viewing a product page that is the same for all users. Caching the
> cart display header would probably produce little value, but caching the
> product details of the page would have a high value.
>
> Clayton
>
> "Quinn Wilson" <Quinn.Wilson@nygard.com> wrote in message
> news:43724709.0403190912.701f31a3@posting.google.com...
> (CommerceContext.Current.AuthenticationInfo.SupportsSessionCookies==false)
>
>
|
|
|
|
|