Hi,
It have read carefully the very well explained page
http://www.mnot.net/cache_docs/
Then I try now to modify the header
I still want to cache my Uniface dynamic page but still without success
(still a TCP_MISS)
I looked in my header and it appears that:
985961658.367 4789 127.0.0.1 TCP_MISS/200 99293 GET
http://127.0.0.1:81/uniface/urd/run/component.index?CAT
ID=VN - DIRECT/127.0.0.1 text/html [If-Modified-Since: Fri, 30 Mar 2001
10:00:00 GMT; length=98921\r\nRefere
r: http://127.0.0.1/journal/urd/run/component.index?CATID=RT\r\nAccept:
image/gif, image/x-xbitmap, image
/jpeg, image/pjpeg, image/png, */*\r\nUser-Agent: Mozilla/4.75 %5ben%5d
(WinNT; U)\r\nHost: 127.0.0.1\r\n
Accept-Encoding: gzip\r\nAccept-Language: fr,en\r\nAccept-Charset:
iso-8859-1,*,utf-8\r\n] [HTTP/1.1 200 OK\r\
nDate: Fri, 30 Mar 2001 14:14:13 GMT\r\nServer: Apache/1.3.19 (Unix)
ApacheJServ/1.1.2\r\nCache-Control: no-ca
che\r\nExpires: 0\r\nCache-Control: public, max-age=600\r\nLast-Modified:
Thu, 30 Mar 2001 10:00:00 GMT\r\nExp
ires: Thu, 31 Mar 2001 10:00:00 GMT\r\nContent-Length: 98921\r\nKeep-Alive:
timeout=15, max=100\r\nConnection:
Keep-Alive\r\nContent-Type: text/html\r\n\r]
It seems that I have 2 Cache-Control in my header:
I use mod_header in apache :
Header unset Cache-Control
Header set Cache-Control "public, max-age=600"
Header set Last-Modified "Thu, 30 Mar 2001 10:00:00 GMT"
I tried only to put only that
Header unset Cache-Control
But I still have the Cache-Control: no-cache in the header .
I don't understand what is going wrong.
Do u have any idea ?
Thank you very much
Patrice
Henrik Nordstrom wrote:
> selvatico patrice wrote:
>
> > I still can figure out how to cache dynamic pages.
>
> For a start Squid must have some information telling it that the object
> can be cached. Your refresh_pattern settings is one such
>
> refresh_pattern . 5 20% 5
> refresh_pattern ^http: 5 10% 5
>
> This should allow Squid to cache objects for 5 minutes.
>
> But: Most "dynamic" servers also mark their returned pages as
> uncacheable in more ways than not containing enought information to tell
> that they can be cached. For example by having an explicit "Expires:" or
> "no-cache" reply header. To find out the details of what the reply looks
> like, enable log_mime_hdrs in squid.conf.
>
> In practical life for accelerators, allowing caching is best attacked at
> the server. Most servers allows you to reconfigure them to return
> cachable replies.
>
> --
> Henrik Nordstrom
> Squid hacker
Received on Fri Mar 30 2001 - 07:32:28 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:59:03 MST