Re: [squid-users] object refresh question

From: Henrik Nordstrom <[email protected]>
Date: Thu, 06 Jul 2006 17:52:53 +0200

ons 2006-07-05 klockan 13:58 -0700 skrev Mike Leong:

>
> 1. is it possible, when doing the HEAD command on the CGI, have it return
> the last mod date, but not execute the CPU intensive stuff.

What you can to support is If-Modified-Since, which is used both by
clients and Squid to send cache validations.

Requires your CGI to return a Last-Modified and to know how to compare
current status to the If-Modified-Since header when getting a request..

Which this in place it will be all automatic.. (assuming your CGI is
smart to skip the CPU intensive stuff if If-Modified-Since indicates the
previous response is still fresh).

Regards
Henrik

Received on Thu Jul 06 2006 - 09:52:56 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Aug 01 2006 - 12:00:01 MDT