removing cache from browser & proxy server

Results 1 to 2 of 2

Thread: removing cache from browser & proxy server

  1. #1
    Join Date
    Dec 1969

    Default removing cache from browser & proxy server

    how do i remove cache from browser & proxy server while executing asp pages

  2. #2
    Join Date
    Dec 1969

    Default By default, ASP is supposed to disable caching in

    Browser caching is controlled by the HTTP "Expires" header, which is sent by a Web server to a browser. ASP provides two simple mechanisms to send this header. To set the page to expire at a certain number of minutes in the future, set the Response.Expires property. The following example tells the browser that the content expires in 10 minutes:<BR><BR>&#060;% Response.Expires = 10 %&#062;<BR><BR>Setting Response.Expires to a negative number or 0 disables caching. Be sure to use a large negative number, such as -1000 (a little more than a day), to work around mismatches between the clocks on the server and the browsers. A second property, Response.ExpiresAbsolute, allows you set the specific time at which the content will expire:<BR><BR>&#060;% Response.ExpiresAbsolute = #May 31,2001 13:30:15# %&#062;<BR><BR>Rather than using the Response object to set expiration, you can write a &#060;META&#062; tag into the HTML, usually within the &#060;HEAD&#062; section of the HTML file. Some browsers will respect this directive, although proxies will not.<BR><BR>&#060;META HTTP-EQUIV="Expires" VALUE="May 31,2001 13:30:15"&#062;<BR><BR>Finally, you can indicate whether the content is valid for an HTTP proxy to cache, using the Response.CacheControl property. Setting this property to "Public" enables proxies to cache the content.<BR><BR>&#060;% Response.CacheControl = "Public" %&#062;<BR><BR>By default, this property is set to "Private." Note that you should not enable proxy caching for pages that show data specific to a user, as the proxy may serve pages to users that belong to other users.<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts