Networking Forums

Networking Forums > Computer Networking > Linux Networking > squid not always using cache

Reply
Thread Tools Display Modes

squid not always using cache

 
 
Slacknix
Guest
Posts: n/a

 
      02-01-2006, 12:53 PM
i'm running squid on a transparent proxy server. when i do windows
updates sometimes it uses the cache and sometimes it doesn't. I'm
running slackware 10.2 and the newest version of squid. Is there any
way i can fix this?

thanx in advance
constant meiring

 
Reply With Quote
 
 
 
 
bykov.victor@gmail.com
Guest
Posts: n/a

 
      02-02-2006, 09:26 AM
Whether use or not cache depends on Expires: field in web server
response which might give for example
"Expires: Thu, 19 Nov 1981 08:52:00 GMT"
which means that page (or file) is not intended for caching,
or for example, server says that file expire after 4 days after
downloading

 
Reply With Quote
 
Slacknix
Guest
Posts: n/a

 
      02-02-2006, 02:16 PM
but it's windows update files. Should they expire?

 
Reply With Quote
 
David Schwartz
Guest
Posts: n/a

 
      02-02-2006, 10:31 PM

"Slacknix" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) ups.com...

> but it's windows update files. Should they expire?


It would be interesting to see what headers you're getting on those
files. One would think they'd be set to expire fairly far in the future.
Make sure the clock is correct on your caching proxy!

DS


 
Reply With Quote
 
Trygve Selmer
Guest
Posts: n/a

 
      02-03-2006, 01:55 AM
Slacknix wrote:
> but it's windows update files. Should they expire?


First, please quote what you are answering. This is a newsgroup, not a
web forum!

Second, windows update are using many servers, you may be connecting
to two different IPs.

 
Reply With Quote
 
Slacknix
Guest
Posts: n/a

 
      02-08-2006, 08:02 PM
Trygve Selmer wrote:

>First, please quote what you are answering. This is a newsgroup, not a
>web forum!


>Second, windows update are using many servers, you may be connecting
>to two different IPs.


The MD5 on the file should be the same as it's the same file, made on
the same date, same time, same everything.

 
Reply With Quote
 
nntpchip
Guest
Posts: n/a

 
      02-21-2006, 09:52 AM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Slacknix wrote:
> i'm running squid on a transparent proxy server. when i do windows
> updates sometimes it uses the cache and sometimes it doesn't. I'm
> running slackware 10.2 and the newest version of squid. Is there any
> way i can fix this?



!!! WORD OF WARNING !!!

Use at your own risk.

Do not use refresh_pattern with other url:s than those mentioned below
without thorough testing. Who knows what can happen and you may find
yourself in serious trouble if people using your cache gets pages that
are frozen in time or otherwise damaged.

!!! YOU HAVE BEEN WARNED !!!








For quite some time Microsoft sends a 'do not cache this'-commmand with
the updates telling any caching servers to fetch directly from the
update servers.




The following three lines fix that. Put them in squid.conf and tell
squid to reconfigure or restart. Then start updating. Sometimes it can
take a couple of updates for it to settle.

- ----- squid.conf -----
refresh_pattern download.windowsupdate.com/ 0 80% 43200 reload-into-ims
refresh_pattern update.microsoft.com/ 0 80% 43200 reload-into-ims
range_offset_limit -1
- ----- squid.conf -----

(If these patterns do not work you have to look through access.log to
find what goes instead. They tend to change from time to time.)




The two lines beginning with 'refresh_pattern' tells squid to force
caching of 'no-cache'-objects.

The 'range_offset_limit' tells squid to cache whole objects even when
clients use range-requests to fetch only parts of huge files. Microsoft
started using that with some service packs and those files can be
several hundred megabytes in size.


Hope that helps.


-----BEGIN PGP SIGNATURE-----

iD8DBQFD+vDZd4EdTY0jmf8RAgcWAJ9jGtlcHzcLRYi6p80hLK +oAYAXCQCfRu88
bSY7Sc2rod5eBJhCDO5J1TU=
=brY6
-----END PGP SIGNATURE-----
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS cache tshad Windows Networking 3 01-18-2007 10:59 PM
cache june Broadband 3 07-06-2005 09:53 PM
arp cache cb39940 Wireless Networks 3 06-26-2005 01:22 AM
ISP cache Schewdent Linux Networking 3 08-02-2004 09:08 AM
Intermittent Squid problem, no responce from squid Graeme Hinchliffe Linux Networking 1 10-30-2003 11:51 AM



1 2 3 4 5 6 7 8 9 10 11