I find a method to cache dynamic pages in squid 2.4Stable.
I do it by modifying 'refresh_pattern' in squid.conf file:
refresh_pattern .jsp 5 20% 20
In this way, squid can cache .jsp?xxxx in the memory. For the second time I
request that url, the access.log shows TCP_HIT.
Robert Collins
<robert.collins@itdoma 收件人: Brian <hiryuu@envisiongames.net>
in.com.au> 抄送: yepenga@legend.com.cn,
squid-users@squid-cache.org
2001-08-13 16:30 主题: Re: [squid-users] Can squid cache dynamic
pages?
On 13 Aug 2001 02:23:35 -0400, Brian wrote:
> Surely this is FAQ fodder by now.
>
> Squid will only cache objects with an Expire and/or a Last-Modified
> header. The developers chose correctness over effectiveness and, unless
> the web site explicitly specifies otherwise, it assumes a dynamic page is
> a one-shot deal.
>
> The more you think about it, the better that idea seems. With cookies,
> referrers, user agents, accept information, and a fistful of other 'under
> the table' headers flying through, the same url can produce different
> content for any number of reasons. How does squid know who should get
> which version? It can't*, and any attempt to assume otherwise will cause
> a huge mess.
>
> -- Brian
>
> * I know someone's thinking "it can look at Vary headers" but when is the
> last time you saw a CGI cough up Vary headers? Yeah, same here.
*cough* squid 2.5 new feature *cough* - thank Henrik :}
Rob
> On Monday 13 August 2001 02:03 am, yepenga@legend.com.cn wrote:
> > Hi,
> > I want to cache dynamic pages in the squid proxy server, so the
> > clients in my LAN can access dynamic pages like asp and jsp repeatedly.
> > But I don't know how get it even though I read lots of related info in
> > mailing lists. I have configured the 'no_cache' in squid.conf file, but
> > it didn't work. Also, my friend told me that squid can not cache
dynamic
> > pages. Is it ture? Who can tell me how to solove it?
> >
> > Thanks a lot!
> > benny
Received on Mon Aug 13 2001 - 03:45:29 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:01:36 MST