Re: Is it possible to cache ASP pages?

From: Hillel Bilman <hillel@dont-contact.us>
Date: Mon, 24 Apr 2000 21:28:29 +0200

Hi

Thanks for this great reply.

Where can I find info on the options available for setting up
headers, so squid will cache the pages?

Also you mentioned a book below, can you recommend a good book on
this topic?

Thanks, any help appreciated

On Sat, 01 Apr 2000 23:26:38 +0200, you wrote:

>Yes, by changing the ASP application to return the appropriate headers.
>In the response object you must set both cache-control to public, and a
>expire time.
>
>At close to the top of the ASP file (before any HTML content):
>
><%Response.CacheControl="public"%>
><%Response.Expires=1440%>
>
>Enables the page output to be cached in a shared cache (proxy) for up to
>1 day (1440 minutes). See also the ExpiresAbsolute response property.
>According to a book I have the expiry time can be set from the directory
>properties in MMC, but I have not tried that myself. In any case the
>CacheControl tag is needed to make the page cachable.
>
>Also make sure you do not block caching for the content with the
>no_cache tag in squid.conf.
Received on Mon Apr 24 2000 - 13:36:42 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:53:01 MST