Re: [squid-users] no cache 404 for a special domain

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Fri, 26 Nov 2010 00:44:23 +1300

On 25/11/10 19:52, Compu Serve wrote:
> Hello list,
>
> I'm running squid for reverse proxy.
>
> I have been setting up "negative_ttl 0 seconds" for no caching all 404
> like pages.
> But now I want to no cache for a special domain with 404 response, but
> not others.
>
> for example,
>
> www.abc.com 404 will get no cache.
> but www.def.com 404 page can be cached.
>
> How to setup it? Thanks in advance.

Configure the web server at www.def.com to send Expires, Last-Modified
and/or Cache-Control headers as appropriate to match your caching needs.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.9
   Beta testers wanted for 3.2.0.3
Received on Thu Nov 25 2010 - 11:44:29 MST

This archive was generated by hypermail 2.2.0 : Thu Nov 25 2010 - 12:00:02 MST