[squid-users] squid-avira-update-cache

Yuri Voinov yvoinov at gmail.com
Fri Feb 17 17:56:49 UTC 2017


root @ khorne /patch # wget -S
http://personal.avira-update.com/update/x_vdf_sigver/7.12.155.64_8.12.155.64/xbv00050.vdf.lz
--2017-02-17 23:51:22-- 
http://personal.avira-update.com/update/x_vdf_sigver/7.12.155.64_8.12.155.64/xbv00050.vdf.lz
Connecting to 127.0.0.1:3128... connected.
Proxy request sent, awaiting response...
  HTTP/1.1 200 OK
  Server: Apache
  ETag: "934c1d64b13126c7daada1daf0fe3845:1487280555"
  Last-Modified: Thu, 16 Feb 2017 21:26:06 GMT
  Accept-Ranges: bytes
  Content-Length: 2023
  Content-Type: text/plain
  Cache-Control: max-age=45
  Expires: Fri, 17 Feb 2017 17:52:13 GMT
  Date: Fri, 17 Feb 2017 17:51:28 GMT
  X-Cache: MISS from khorne
  X-Cache-Lookup: MISS from khorne:3128
  Connection: keep-alive
Length: 2023 (2.0K) [text/plain]
Saving to: 'xbv00050.vdf.lz'

xbv00050.vdf.lz     100%[===================>]   1.98K  --.-KB/s    in
0s     

2017-02-17 23:51:28 (176 MB/s) - 'xbv00050.vdf.lz' saved [2023/2023]

root @ khorne /patch # wget -S
http://personal.avira-update.com/update/x_vdf_sigver/7.12.155.64_8.12.155.64/xbv00050.vdf.lz
--2017-02-17 23:51:40-- 
http://personal.avira-update.com/update/x_vdf_sigver/7.12.155.64_8.12.155.64/xbv00050.vdf.lz
Connecting to 127.0.0.1:3128... connected.
Proxy request sent, awaiting response...
  HTTP/1.1 200 OK
  Server: Apache
  ETag: "934c1d64b13126c7daada1daf0fe3845:1487280555"
  Last-Modified: Thu, 16 Feb 2017 21:26:06 GMT
  Accept-Ranges: bytes
  Content-Length: 2023
  Content-Type: text/plain
  Cache-Control: max-age=45
  X-Origin-Date: Fri, 17 Feb 2017 17:51:28 GMT
  Date: Fri, 17 Feb 2017 17:51:40 GMT
  X-Origin-Expires: Fri, 17 Feb 2017 17:52:13 GMT
  Expires: Fri, 17 Feb 2017 17:52:25 GMT
  X-Cache-Age: 12
  X-Cache: HIT from khorne
  X-Cache-Lookup: HIT from khorne:3128
  Connection: keep-alive
Length: 2023 (2.0K) [text/plain]
Saving to: 'xbv00050.vdf.lz.1'

xbv00050.vdf.lz.1   100%[===================>]   1.98K  --.-KB/s    in
0s     

2017-02-17 23:51:40 (233 MB/s) - 'xbv00050.vdf.lz.1' saved [2023/2023]

root @ khorne /patch # wget -S
http://personal.avira-update.com/update/x_vdf_sigver/7.12.155.64_8.12.155.64/xbv00044.vdf.lz
--2017-02-17 23:52:22-- 
http://personal.avira-update.com/update/x_vdf_sigver/7.12.155.64_8.12.155.64/xbv00044.vdf.lz
Connecting to 127.0.0.1:3128... connected.
Proxy request sent, awaiting response...
  HTTP/1.1 200 OK
  Server: Apache
  ETag: "953d632488104f11aa7252533ce6389b:1487280555"
  Last-Modified: Thu, 16 Feb 2017 21:26:06 GMT
  Accept-Ranges: bytes
  Content-Length: 13443
  Content-Type: text/plain
  Cache-Control: max-age=162
  Expires: Fri, 17 Feb 2017 17:55:04 GMT
  Date: Fri, 17 Feb 2017 17:52:22 GMT
  X-Cache: MISS from khorne
  X-Cache-Lookup: MISS from khorne:3128
  Connection: keep-alive
Length: 13443 (13K) [text/plain]
Saving to: 'xbv00044.vdf.lz'

xbv00044.vdf.lz     100%[===================>]  13.13K  --.-KB/s    in
0.003s 

2017-02-17 23:52:22 (4.20 MB/s) - 'xbv00044.vdf.lz' saved [13443/13443]

root @ khorne /patch # wget -S
http://personal.avira-update.com/update/x_vdf_sigver/7.12.155.64_8.12.155.64/xbv00044.vdf.lz
--2017-02-17 23:52:23-- 
http://personal.avira-update.com/update/x_vdf_sigver/7.12.155.64_8.12.155.64/xbv00044.vdf.lz
Connecting to 127.0.0.1:3128... connected.
Proxy request sent, awaiting response...
  HTTP/1.1 200 OK
  Server: Apache
  ETag: "953d632488104f11aa7252533ce6389b:1487280555"
  Last-Modified: Thu, 16 Feb 2017 21:26:06 GMT
  Accept-Ranges: bytes
  Content-Length: 13443
  Content-Type: text/plain
  Cache-Control: max-age=162
  X-Origin-Date: Fri, 17 Feb 2017 17:52:22 GMT
  Date: Fri, 17 Feb 2017 17:52:23 GMT
  X-Origin-Expires: Fri, 17 Feb 2017 17:55:04 GMT
  Expires: Fri, 17 Feb 2017 17:55:05 GMT
  X-Cache-Age: 1
  X-Cache: HIT from khorne
  X-Cache-Lookup: HIT from khorne:3128
  Connection: keep-alive
Length: 13443 (13K) [text/plain]
Saving to: 'xbv00044.vdf.lz.1'

xbv00044.vdf.lz.1   100%[===================>]  13.13K  --.-KB/s    in
0.03s  

2017-02-17 23:52:23 (441 KB/s) - 'xbv00044.vdf.lz.1' saved [13443/13443]

Well, let's give big Avira file:


root @ khorne /patch # wget -S
http://personal.avira-update.com/update/n_vdf/vbase005.vdf.gz
--2017-02-17 23:54:04-- 
http://personal.avira-update.com/update/n_vdf/vbase005.vdf.gz
Connecting to 127.0.0.1:3128... connected.
Proxy request sent, awaiting response...
  HTTP/1.1 200 OK
  Server: Apache
  ETag: "5af09f9e8a3d09809ce8005ddb55fa7d:1487352426"
  Last-Modified: Fri, 17 Feb 2017 17:25:36 GMT
  Accept-Ranges: bytes
  Content-Length: 11556885
  Content-Type: application/x-gzip
  Cache-Control: max-age=185
  Expires: Fri, 17 Feb 2017 17:57:09 GMT
  Date: Fri, 17 Feb 2017 17:54:04 GMT
  X-Cache: MISS from khorne
  X-Cache-Lookup: MISS from khorne:3128
  Connection: keep-alive
Length: 11556885 (11M) [application/x-gzip]
Saving to: 'vbase005.vdf.gz'

vbase005.vdf.gz     100%[===================>]  11.02M   471KB/s    in
24s    

2017-02-17 23:54:28 (471 KB/s) - 'vbase005.vdf.gz' saved [11556885/11556885]

root @ khorne /patch # wget -S
http://personal.avira-update.com/update/n_vdf/vbase005.vdf.gz
--2017-02-17 23:54:29-- 
http://personal.avira-update.com/update/n_vdf/vbase005.vdf.gz
Connecting to 127.0.0.1:3128... connected.
Proxy request sent, awaiting response...
  HTTP/1.1 200 OK
  Server: Apache
  ETag: "5af09f9e8a3d09809ce8005ddb55fa7d:1487352426"
  Last-Modified: Fri, 17 Feb 2017 17:25:36 GMT
  Accept-Ranges: bytes
  Content-Length: 11556885
  Content-Type: application/x-gzip
  Cache-Control: max-age=185
  X-Origin-Date: Fri, 17 Feb 2017 17:54:04 GMT
  Date: Fri, 17 Feb 2017 17:54:29 GMT
  X-Origin-Expires: Fri, 17 Feb 2017 17:57:09 GMT
  Expires: Fri, 17 Feb 2017 17:57:34 GMT
  X-Cache-Age: 25
  X-Cache: HIT from khorne
  X-Cache-Lookup: HIT from khorne:3128
  Connection: keep-alive
Length: 11556885 (11M) [application/x-gzip]
Saving to: 'vbase005.vdf.gz.1'

vbase005.vdf.gz.1   100%[===================>]  11.02M   1545KB/s    in
4s    

2017-02-17 23:54:53 (468 KB/s) - 'vbase005.vdf.gz.1' saved
[11556885/11556885]

See no problem to cache this. Check your config. May be you have some
stuff in squid.conf which preventing caching.

17.02.2017 17:43, splicelid at gmail.com пишет:
> Hi all, I'm trying to cache "avira updates" with squid, but no luck...
>
> my conf:
> acl aviraupdate dstdomain .avira-update.com
> range_offset_limit -1 aviraupdate
> refresh_pattern -i avira-update.com/.*\.* 4320 80% 43200 reload-into-ims
>
> any help ? 10x!
>
>
> _______________________________________________
> squid-users mailing list
> squid-users at lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users

-- 
Bugs to the Future
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20170217/b346dc21/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0x613DEC46.asc
Type: application/pgp-keys
Size: 2437 bytes
Desc: not available
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20170217/b346dc21/attachment-0001.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20170217/b346dc21/attachment-0001.sig>


More information about the squid-users mailing list