more information on overrideCacheControlPrivate

From: Krasi Zlatev <krasi@dont-contact.us>
Date: Fri, 15 Jun 2001 10:58:37 +0300 (EEST)

 I run squid for 2 days with the patch overrideCacheControlPrivate, in the
 previous messages I explained what I have changed in http.c.
 I told you that each time I got a HIT the object was released, well I have
 found out that my netscape is totaly broken, I've seen that it sends
 Pragma: no-cache with a lot of request, I haven't got the time yet to see
 why is that and for which requests/Netscape 4.7 for Linux/.So only with my
 Netscape the object got released after a HIT,
 with Netscape for Windows and IE it did not got released.
 
 I noticed that around 1% of all the requests were images with
 Cache-Control: private, but like 99% were with one particular site,
 and the rest were from msn.com, microsoft.com and other sites.
 
 So I increased my hit ratio and I was pretty happy about it, though I new
 that I haven't done it gracefully, and I was looking for a better
 solution.
 
 There was a problem with the server/non-squid related/, but I had to
 restart squid, after restarting then a problem occured.
 
 
 $telnet 0 3128
 HTTP/1.0 304 Not Modified
 Date: Tue, 12 Jun 2001 22:05:15 GMT
 Server: Apache/1.3.19 (Unix) Debian/GNU PHP/4.0.5
 ETag: "2132400a-34d-3a27d506"
 Expires: Tue, 19 Jun 2001 22:05:15 GMT
 Cache-Control: private, max-age=604800
 Age: 42013
 X-Cache: HIT from proxy.eweb.bg
 Proxy-Connection: close
 
 Nothing is returned :(.
 
 I got a hit but the object was not returned, so I had too purge all the
 objects that were cached because of my patch.
 
 So as you see 1% of the requests is not unsignificant, maybe some will
 argue about that.
 
 I have come to the conlcusion, that the way to do it is to actually
 remove the Cache-Control: private from the server reply header, there are
 certainly other ways though.
 
 
 I haven'f found a way to remove this from the header and that is why again
 I write to squid-dev.
 
 I was looking in httpHdrCc.c:
 in httpHdrCcParseInit()
 I did
 case CC_PRIVATE:
 debug("Here I have to remove it");
 if it is here how to remove it?
 
 
 I was also trying in HttpHeader.c
 in httpHeaderEntryCreate() i changed
 debug(55, 9) ("created entry %p: '%s: %s'\n", e, strBuf(e->name),
 strBuf(e->value)); */
 to debug(55, 1) ...
 and in cache.log I was looking for private, but :
 the header of the image was Cache-control: private, max-age=.....
 and in cache.log the entry was only Cache-Control: max-age=....
 
 
 Thank you for the help so far, hope you will point me in the right
 direction on how to make this patch work and work good.
 
 And just one more thing:
 
 in cache.log I get
 
 2001/06/13 12:53:55| ctx: enter level 0
 2001/06/13 12:53:55| override_cache_control_private is matched
 2001/06/13 12:54:29| ctx: exit level 0
 
 this is becuse in http.c I added
 debug(11, 1) ("override_cache_control_private is matched ....
 
 is the section '11' wrong so I get this ctx: enter level 0.
 
 
 
 Thank you.
 
 Krasi Zlatev
 032/ 944 138
 Network Administration
 EWeb
 Enjoy!
 
 
Received on Fri Jun 15 2001 - 01:58:36 MDT

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