Re: Is it possible to cache ASP pages?

From: Mark Nottingham <mnot@dont-contact.us>
Date: Mon, 24 Apr 2000 19:57:14 -0700

http://www.mnot.net/cache_docs/#IMP-SCRIPT

On Mon, Apr 24, 2000 at 09:28:29PM +0200, Hillel Bilman wrote:
> 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.

-- 
Mark Nottingham, Senior Developer
Akamai Technologies (San Mateo, CA)
Received on Mon Apr 24 2000 - 20:59:37 MDT

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