Re: 70-305 question still waiting...
From: valko yotov (valko_at_nms-admin.ch)
Date: 08/31/04
- Next message: WKidd: "Re: Suggestions for positions now that I have MCSD"
- Previous message: Hermit Dave: "Re: All you wanted to know about MCP/ MCAD / MCSD but where afraid to ask"
- Next in thread: Daniel Joskovski: "Re: 70-305 question still waiting..."
- Reply: Daniel Joskovski: "Re: 70-305 question still waiting..."
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 31 Aug 2004 14:45:18 +0200
Hi Daniel,
I agree completely with you, and franlky I do not care much where the cache
actually is (cold beer will be much better ;-),
but unfortunately for me, I will go tomorrow on exam and MSDN is Microsoft's
opinion on cache, and they have some .NET class called "HttpCacheability"
with member called "Public":
and MS's description of it is:
Sets Cache-Control: public to specify that the response is cacheable
by clients and shared (proxy) caches.
this is my problem - I do not see host server in MS definition there?
and on exam it counts what MS says, not what standard is ;-)
cheers
Valko
"Daniel Joskovski" <omnis@NOSPAMunetREMOVECAPS.com.mk> wrote in message
news:%23PbRbmujEHA.3968@TK2MSFTNGP11.phx.gbl...
> Hi Valko, I present you part off HTTP 1.1 standard wich explain my opinion
> that
> any == public
>
> if you are interested you can look at
> http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.1
>
> but in short
>
> 14.9.1 What is Cacheable
>
> By default, a response is cacheable if the requirements of the request
> method, request header fields, and the response status indicate that it is
> cacheable. Section 13.4 summarizes these defaults for cacheability. The
> following Cache-Control response directives allow an origin server to
> override the default cacheability of a response:
>
> public
> Indicates that the response MAY be cached by any cache, even if it would
> normally be non-cacheable or cacheable only within a non- shared cache.
(See
> also Authorization, section 14.8, for additional details.)
>
> private
> Indicates that all or part of the response message is intended for a
single
> user and MUST NOT be cached by a shared cache. This allows an origin
server
> to state that the specified parts of the
> response are intended for only one user and are not a valid response for
> requests by other users. A private (non-shared) cache MAY cache the
> response.
> Note: This usage of the word private only controls where the response may
be
> cached, and cannot ensure the privacy of the message content.
>
> no-cache
> If the no-cache directive does not specify a field-name, then a cache MUST
> NOT use the response to satisfy a subsequent request without successful
> revalidation with the origin server. This allows an origin server to
prevent
> caching even by caches that have been configured to return stale responses
> to client requests.
> If the no-cache directive does specify one or more field-names, then a
cache
> MAY use the response to satisfy a subsequent request, subject to any other
> restrictions on caching. However, the specified field-name(s) MUST NOT be
> sent in the response to a subsequent request without successful
revalidation
> with the origin server. This allows an origin server to prevent the re-use
> of certain header fields in a response, while still allowing caching of
the
> rest of the response.
>
> Regards,
> Daniel
>
> "valko yotov" <valko@nms-admin.ch> wrote in message
> news:uBRvR8ojEHA.632@TK2MSFTNGP12.phx.gbl...
> > Hi Daniel,
> >
> > thank you for your answer, but according to mentioned MSDN link:
> >
> > Public Sets Cache-Control: public to specify that the response is
> > cacheable by clients and shared (proxy) caches.
> >
> >
> > which id equivalent to "Downstream" not to "Any" - we are talking here
not
> > for version differences 1 to 1.1, but instead for different presentation
> on
> > same stuff:
> >
> > 1. You use OutputCache Location page directive declaratively
> > 2. Or you use Response.Cache HttpCachePolicy's SetCacheability during
> > runtime
> >
> > which still leaves me not answered what is "Any" = Response.Cache
> > HttpCachePolicy's SetCacheability?
> > because according to books I read "Any" means absolutly all - client,
> proxy
> > AND host server - I do not see host server option in MSDN article for
> > HttpCacheability?
> >
> > cheers
> > Valko
> >
> >
> > "Daniel Joskovski" <omnis@NOSPAMunetREMOVECAPS.com.mk> wrote in message
> > news:el6A9dijEHA.2616@TK2MSFTNGP10.phx.gbl...
> > > See answers in line
> > >
> > > Regards,
> > > Daniel
> > >
> > > "valko" <valko@yotov.biz> wrote in message
> > > news:#zYPw#fjEHA.2140@TK2MSFTNGP15.phx.gbl...
> > > > Hi guys,
> > > >
> > > > In Microsoft's Training Kit MCAD/MCSD "Developing Web Applications"
> > p.641
> > > we
> > > > see:
> > > >
> > > > OutputCache's Location attribute "Any" is equivalent to
> > HttpCachePolicy's
> > > > SetCacheability member "HttpCacheability.Server"
> > > >
> > > Not correct default is Private
> > >
> > > > and it is Default for asp.net
> > > >
> > > > but in MSDN
> > > >
> > >
> >
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebhttpcacheabilityclasstopic.asp
> > > > for member "HttpCacheability.Server" we see:
> > > >
> > > > Server Specifies that the response is cached only at the
origin
> > > > server. Similar to the NoCache option. Clients receive a
> Cache-Control:
> > > > no-cache directive but the document is cached on the origin server.
> > > >
> > >
> > > Correct
> > > >
> > > > and also for Default we see:Private Default value. Sets
Cache-Control:
> > > > private to specify that the response is cacheable only on the client
> and
> > > not
> > > > by shared (proxy server) caches.
> > > >
> > > >
> > >
> > > Correct
> > > And can't be equal to Any
> > >
> > > > and in some exam tests I have I see that "Any" =
> > > ""HttpCacheability.Public"
> > > > ?!?
> > > >
> > >
> > > Correct
> > > Framework 1.0 has only 4 enumerations, which is compatible with HTTP
1.1
> > > No cache, Private, Public and Server
> > > When you have 4 choices instead of 6 is easier to deduce that "Any" =
> > > ""HttpCacheability.Public"
> > >
> > > > I will go to exam in Wednesday and will highly appreciate any
> > suggestions
> > > > and help :-))
> > > >
> > > > thank you
> > > >
> > > > cheers
> > > > Valko
> > > >
> > > >
> > >
> > >
> >
> >
>
>
- Next message: WKidd: "Re: Suggestions for positions now that I have MCSD"
- Previous message: Hermit Dave: "Re: All you wanted to know about MCP/ MCAD / MCSD but where afraid to ask"
- Next in thread: Daniel Joskovski: "Re: 70-305 question still waiting..."
- Reply: Daniel Joskovski: "Re: 70-305 question still waiting..."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|