httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Galić <>
Subject Re: [users@httpd] Apache as caching proxy
Date Tue, 01 Jun 2010 15:58:22 GMT

----- "Nilesh Govindarajan" <> wrote:

> Hi,
> I have an installation of Apache running, so thinking of using it as
> a
> personal caching server after being fed up of firefox crashes which
> clears the cache.
> I have set it up using the manual and some guides using Google, but
> how do I know that its working ?
> Here are my settings:

Before saying anything I should tell you that Apache httpd is not really
recommended as Forward Proxy. There are better alternatives, (even!) Squid
being one of them.

> ProxyRequests On
> ProxyVia Off
> ProxyBadHeader Ignore
> ProxyStatus On
> <Proxy *>
> Order deny,allow
> Deny from All
> Allow from localhost
> </Proxy>
> AllowCONNECT 443
> CacheDefaultExpire 3600
> CacheMaxExpire 604800
> CacheIgnoreCacheControl On
> CacheStorePrivate On
> CacheStoreNoStore On
> CacheIgnoreNoLastMod On
> CacheRoot /home/proxy_cache
> CacheEnable disk /
> CacheMaxFileSize 5242880
> CacheIgnoreURLSessionIdentifiers jsessionid PHPSESSID sid
> What happens if I remove the CacheMaxExpire directive ? Will Apache
> check for the document's last-modified time ?
> I would like latest stuff on websites I visit, so please guide me in
> the right direction.

I think the documentation is quite clear on this:
``Thus, documents will be out of date at most this number of seconds. This maximum value is
enforced even if an expiry date was supplied with the document.''

If you remove the directive it will fall back to:

Default:	CacheMaxExpire 86400 (one day)

What you probably want to do is invalidate the cache, but that can only be done with
htcacheclean from trunk so far:
Which again only makes sense in a reverse proxy setup....

So long,

Igor Galić

Tel: +43 (0) 699 122 96 338
Fax: +43(0) 1 91 333 41

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message