howard chen wrote:
Hi,
On Thu, Apr 10, 2008 at 2:24 AM, Adrian Chadd <adrian@xxxxxxxxxxxxxxx> wrote:
Not without modifying Squid itself, no.
Then I might need to use my program to handle it...but are there any
method to do this:
1. Cache nothing at the beginning
2. If my PHP tell squid to cache, it will be cached.
3. If my PHP tell squid to clear the cache, it will be cleared.
Thanks.
Cache-Control: header in HTTP does #1 and #2. PHP can send it with
the header() function.
#3 is tricker since while file is going from cache the PHP will never
be run from that same URL until the object expires naturally.
Amos
--
Please use Squid 2.6.STABLE19 or 3.0.STABLE4