tags:

views:

41

answers:

3

While searching for authentication ,i found above two line written .what it means? please tell me.

A: 

These lines prevent the page from being cached.

SLaks
A: 

The first one tells the browser not to cache this page (see here), and the second one tells the browser not to include this page in the browse history (see here).

Google is your friend...

Jappie
A: 

HttpCachePolicy.SetCacheability Method

NoCache: Sets the Cache-Control: no-cache header. Without a field name, the directive applies to the entire request and a shared (proxy server) cache must force a successful revalidation with the origin Web server before satisfying the request. With a field name, the directive applies only to the named field; the rest of the response may be supplied from a shared cache.

HttpCachePolicy.SetAllowResponseInBrowserHistory Method

When HttpCacheability is set to NoCache or ServerAndNoCache the Expires HTTP header is by default set to -1; this tells the client not to cache responses in the History folder, so that when you use the back/forward buttons the client requests a new version of the response each time.

ChrisF