Matus UHLAR - fantomas wrote:
On 10.08.09 16:02, Никоноров Григорий wrote:
I'm running Squid 2.5 on FreeBSD 6.4.
2.5 is obsolete. 2.7 and 3.0 are current and supported.
The problem with caching doc files,please help!
Squid downloads a file and puts it in the cache. The file is then
updated on the server and downloading again.
yes, that's how it's supposed to do.
File size: old - 2,5 Mb, new - 7 Mb.
There is no restrictions on the size of the files in squid.conf
Squid offers to upload the old file from the cache.
upload? You apparently mean provide.
Emptying the cache in the browser and restarting did not help.
Also no problems with images,excel,txt and html files.
access.log:
(manual.doc)
1249892125.696 22 192.168.164.111 TCP_MISS/404 520 GET http://qzar.spb.ru/test/manua.doc grigoryn DIRECT/213.182.169.10 text/html
1249892125.839 7 192.168.164.111 TCP_HIT/200 700 GET http://qzar.spb.ru/favicon.ico grigoryn NONE/- image/x-icon
1249892134.036 3659 192.168.164.111 TCP_MISS/200 521599 GET http://qzar.spb.ru/test/manual.doc grigoryn DIRECT/213.182.169.10 application/msword
1249892376.653 78 192.168.164.111 TCP_HIT/200 521608 GET http://qzar.spb.ru/test/manual.doc grigoryn NONE/- application/msword
1249892422.479 44 192.168.164.111 TCP_HIT/200 521608 GET http://qzar.spb.ru/test/manual.doc grigoryn NONE/- application/msword
1249892434.849 99 192.168.164.111 TCP_HIT/200 521608 GET http://qzar.spb.ru/test/manual.doc grigoryn NONE/- application/msword
1249892439.664 105 192.168.164.111 TCP_HIT/200 521608 GET http://qzar.spb.ru/test/manual.doc grigoryn NONE/- application/msword
1249892459.612 7 192.168.164.111 TCP_DENIED/407 1715 GET http://qzar.spb.ru/test/manual.doc - NONE/- text/html
1249892461.341 88 192.168.164.111 TCP_HIT/200 521608 GET http://qzar.spb.ru/test/manual.doc grigoryn NONE/- application/msword
1249892487.566 64 192.168.164.111 TCP_HIT/200 521608 GET http://qzar.spb.ru/test/manual.doc grigoryn NONE/- application/msword
1249892549.111 1 192.168.164.111 TCP_DENIED/407 1715 GET http://qzar.spb.ru/test/manual.doc - NONE/- text/html
1249892550.482 83 192.168.164.111 TCP_HIT/200 521608 GET http://qzar.spb.ru/test/manual.doc grigoryn NONE/- application/msword
until now, old version of http://qzar.spb.ru/test/manual.doc was provided
from the cache.
1249892789.651 60523 192.168.164.111 TCP_REFRESH_MISS/200 7398273 GET http://qzar.spb.ru/test/manual.doc grigoryn DIRECT/213.182.169.10 application/msword
here a file is re-fetched.
(saxalin.doc)
1249895451.176 24616 192.168.164.111 TCP_MISS/200 2456961 GET http://qzar.spb.ru/test/saxalin.doc grigoryn DIRECT/213.182.169.10 application/msword
here a file http://qzar.spb.ru/test/saxalin.doc was fetched
1249896904.336 19 213.182.169.4 TCP_NEGATIVE_HIT/404 682 GET http://www.ru/favicon.ico grigoryn NONE/- text/html
1249896911.785 1718 213.182.169.4 TCP_HIT/200 11925525 GET http://qzar.spb.ru/test/saxalin.doc grigoryn NONE/- application/msword
1249896927.657 12 213.182.169.4 TCP_DENIED/407 1834 GET http://qzar.spb.ru/test/saxalin.doc - NONE/- text/html
1249896932.773 3938 213.182.169.4 TCP_HIT/200 5730838 GET http://qzar.spb.ru/test/saxalin.doc grigoryn NONE/- application/msword
1249896962.922 28 213.182.169.4 TCP_DENIED/407 1834 GET http://qzar.spb.ru/test/saxalin.doc - NONE/- text/html
1249896965.842 1474 213.182.169.4 TCP_HIT/200 11925526 GET http://qzar.spb.ru/test/saxalin.doc grigoryn NONE/- application/msword
1249897008.540 1036 213.182.169.4 TCP_HIT/200 11925526 GET http://qzar.spb.ru/test/saxalin.doc grigoryn NONE/- application/msword
1249897031.110 20 213.182.169.4 TCP_DENIED/407 1834 GET http://qzar.spb.ru/test/saxalin.doc - NONE/- text/html
1249897034.312 1300 213.182.169.4 TCP_HIT/200 11925526 GET http://qzar.spb.ru/test/saxalin.doc grigoryn NONE/- application/msword
... and cachd version was provided by squid since.
Tried to do the same for the Squid Cache 2.7 STABLE3 and 3.0.STABLE18
Debian Lenny with negative result.
I can't understand what is the problem, or, what do you mean is the problem,
how do you want squid to behave.
He may be hitting bug #7 but not explaining it well.
NP: bug #7 is fixed in 2.7 (still present in 3.0).
Amos
--
Please be using
Current Stable Squid 2.7.STABLE6 or 3.0.STABLE18
Current Beta Squid 3.1.0.13