Re: question

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Mon, 08 Nov 1999 18:43:32 +0100

zhui518@263.net wrote:

> I have a Web server, using Apathe runing on Linux. In order
> to accelerate my server, I want use Squid in Accelerator mode.
> I have some CGI programe and these CGI programe accept input
> from user and then generate dynamic pages, I want these dynamic
> pages to be cacheable, Is it possible, If it does not work,
> please give me some advises.

Caching of CGI output requires that these CGI's uses the GET method.

The best approach is to change the CGI program to return correct expiry
information (Expires or Cache-Control: max-age headers).

If that isn't possible, then Squid can apply it's own idea of expiry
time by configuring the refresh_pattern settings.

Example refresh_pattern:

# cgi1.pl is cachable for 30 minutes
refresh_pattern /cgi-bin/cgi1.pl 1800 0 1800

--
Henrik Nordstrom
Squid hacker
Received on Mon Nov 08 1999 - 12:41:01 MST

This archive was generated by hypermail pre-2.1.9 : Wed Apr 09 2008 - 11:57:32 MDT