Re: Size of cached Objects?

From: Michael Ju. Tokarev <mjt@dont-contact.us>
Date: Sun, 19 Mar 2000 23:09:20 +0300

Squid shouldn't interpret in any way contents of pages it caching.
So you can write absolutely _anything_ inside your page/script,
and it will be cached (or not) without any contents changes.
I think that when your page generated by server (is this script
runs on server, not client?), server refuses to set proper
"date", "expires", etc fields, but instead generates something
like "pragma: no-cache". This is true for _all_ server-generated
pages unless implicitly said by "page generator", be this perl-generated
pages, "shtml" pages, php etc etc, since (generic) server can't know
if contents will be different on next run.
And also I think that this is not in squid's side -- you can set/change
any parameters in squid, and this can't help.
Another quiestion is -- why it is cached _someplace_ if it is small,
and not cached if bigger -- and probably your best friend here is a _server_
documentation... Maybe it is cached inside server? Or, (incorrectly) inside
browser? Try loading this page and see what connections will be made by
your browsed and by squid in different cases (if your connection is fast,
you can use tcpdump or similar thing, as you have no time to monitor
your connections).

Regards,
  Michael.

Thien Do wrote:
>
> Thanks for reply. I did increase the size of "maximum_object_size" but it
> did not help.
> But ...
> <%
> out.println("<H1><UL>");
> for (int i=1; i<500; i++) {
> out.println("<LI>Line [" + i + "]");
> }
> out.println("</UL></H1>");
> %>
>
> This script generate 500 lines, the page is cached well. If I change 500 to
> 1000, Squid refuses to cache the page. But the 1000-line file is just about
> few Kbytes, the default of "maximum_object_size" is 4MB.
>
> Seem to be something very simple but I miss out. Can I include the
> squid.conf if you want to help.
>
> tdo-
> <<squid.conf>>
> -----Original Message-----
> From: Kendall Lister [mailto:kendall@charon.net.au]
> Sent: Friday, March 17, 2000 4:29 PM
> To: Squid Users Mailing List
> Subject: Re: Size of cached Objects?
>
> On Fri, 17 Mar 2000, Thien Do wrote:
>
> > In the squid.conf, I understand that maximun_object_size is 4MB by
> > default. What should I do to have big file being cached?
>
> Increase the maximum_object_size value...
>
> --
> Kendall Lister, Systems Operator for Charon I.S. - kendall@charon.net.au
> Charon Information Services - Friendly, Cheap Melbourne ISP: 9589 7781
>
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> Name: squid.conf
> squid.conf Type: unspecified type (application/octet-stream)
> Encoding: quoted-printable
Received on Sun Mar 19 2000 - 13:12:16 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:52:17 MST