Avast cache
-
Hi,
I am using squid3 dynamic cache feature. But avast antivirus definition updates don't get cached at all. its always a TCP_MISS 200
Looking at the refresh pattern available on pfsense which is:
refresh_pattern ([^.]+.|)avast.com/.*.(vpu|vpaa) 4320 100% 43200 reload-into-imsbut when I see the proxy log, the update url avast is using isnt ending with either vpu or vpaa, it ends with "=" or "==", so I made the refresh pattern generic as follows:
refresh_pattern ([^.]+.|)avast.com/.* 4320 100% 43200 reload-into-ims
still all avast updates are a TCP_MISS
–------- log
27.05.2015 23:33:53 172.16.1.10 TCP_MISS/200 http://su.ff.avast.com/R/A2sKIGU3Nzk2MzI3ODI3OTQyMTQ5OTE0YzU2ODcxMTQzN2EzEgQAJwUVGN8FIgECKgQIAxAAKgcIBBDL05szMgoIBBDL05szGIAKQiDC8rsrv9yufVhcMYezdc0BfbD33fKpaixZ7WnEiVjxDg== - 77.234.43.64
27.05.2015 23:33:50 172.16.1.125 TCP_MISS/200 http://su.ff.avast.com/R/A28KIDlmYzY5YjAxMTViOTQzMTNiNTM4ODQ3NTliZDJkMmM2EgQBJwUVGPkFIgH-KgcIBBDL05szMgoIBBDL05szGIAKOKqRiFBCIE4TjrgioEx-JoiDfB6CTuZ-J48z5MxdrCfeUCOpPLMmSICClAg= - 77.234.44.64
27.05.2015 23:33:47 172.16.1.114 TCP_MISS/200 http://su.ff.avast.com/R/A28KIGFmMjE1MmJmNzJlODRmMmU4NTU1YjlmN2I1ZmQxY2U3EgQBJwUVGOMGIgH-KgcIBBDL05szMgoIBBDL05szGIAKOKCRgFBCIBwfectF6h0PhQgx8KZ0bo8CN7afmAhMHEl2nwe5ceu2SICCmAg= - 77.234.41.63
27.05.2015 23:33:47 172.16.1.52 TCP_MISS/200 http://su.ff.avast.com/R/A28KIGU3ZTM4MmM3YWQzYzQxMDI4ZGFkMGZlNDRmN2E4YzViEgQBJwUVGL8GIgEBKgcIBBDL05szMgoIBBDL05szGIAKOKqRiFBCIB08fhpgzugJZilFWHhscizNlnR32TdZI3nLJtjZPnJ0SICClAg= - 77.234.43.62
27.05.2015 23:30:26 172.16.1.125 TCP_MISS/200 http://su.ff.avast.com/R/A28KIDlmYzY5YjAxMTViOTQzMTNiNTM4ODQ3NTliZDJkMmM2EgQBJwUVGPkFIgH-KgcIBBDz0JszMgoIBBDz0JszGIAKOKqRiFBCIE4TjrgioEx-JoiDfB6CTuZ-J48z5MxdrCfeUCOpPLMmSICClAg= - 77.234.44.64 -
Hi,
I am using squid3 dynamic cache feature. But avast antivirus definition updates don't get cached at all. its always a TCP_MISS 200
Looking at the refresh pattern available on pfsense which is:
refresh_pattern ([^.]+.|)avast.com/.*.(vpu|vpaa) 4320 100% 43200 reload-into-imsbut when I see the proxy log, the update url avast is using isnt ending with either vpu or vpaa, it ends with "=" or "==", so I made the refresh pattern generic as follows:
refresh_pattern ([^.]+.|)avast.com/.* 4320 100% 43200 reload-into-ims
still all avast updates are a TCP_MISS
–------- log
27.05.2015 23:33:53 172.16.1.10 TCP_MISS/200 http://su.ff.avast.com/R/A2sKIGU3Nzk2MzI3ODI3OTQyMTQ5OTE0YzU2ODcxMTQzN2EzEgQAJwUVGN8FIgECKgQIAxAAKgcIBBDL05szMgoIBBDL05szGIAKQiDC8rsrv9yufVhcMYezdc0BfbD33fKpaixZ7WnEiVjxDg== - 77.234.43.64
27.05.2015 23:33:50 172.16.1.125 TCP_MISS/200 http://su.ff.avast.com/R/A28KIDlmYzY5YjAxMTViOTQzMTNiNTM4ODQ3NTliZDJkMmM2EgQBJwUVGPkFIgH-KgcIBBDL05szMgoIBBDL05szGIAKOKqRiFBCIE4TjrgioEx-JoiDfB6CTuZ-J48z5MxdrCfeUCOpPLMmSICClAg= - 77.234.44.64
27.05.2015 23:33:47 172.16.1.114 TCP_MISS/200 http://su.ff.avast.com/R/A28KIGFmMjE1MmJmNzJlODRmMmU4NTU1YjlmN2I1ZmQxY2U3EgQBJwUVGOMGIgH-KgcIBBDL05szMgoIBBDL05szGIAKOKCRgFBCIBwfectF6h0PhQgx8KZ0bo8CN7afmAhMHEl2nwe5ceu2SICCmAg= - 77.234.41.63
27.05.2015 23:33:47 172.16.1.52 TCP_MISS/200 http://su.ff.avast.com/R/A28KIGU3ZTM4MmM3YWQzYzQxMDI4ZGFkMGZlNDRmN2E4YzViEgQBJwUVGL8GIgEBKgcIBBDL05szMgoIBBDL05szGIAKOKqRiFBCIB08fhpgzugJZilFWHhscizNlnR32TdZI3nLJtjZPnJ0SICClAg= - 77.234.43.62
27.05.2015 23:30:26 172.16.1.125 TCP_MISS/200 http://su.ff.avast.com/R/A28KIDlmYzY5YjAxMTViOTQzMTNiNTM4ODQ3NTliZDJkMmM2EgQBJwUVGPkFIgH-KgcIBBDz0JszMgoIBBDz0JszGIAKOKqRiFBCIE4TjrgioEx-JoiDfB6CTuZ-J48z5MxdrCfeUCOpPLMmSICClAg= - 77.234.44.64any help is appreciated :)
-
Dynamic content can be very hard to cache. Can you confirm that the name of the file stays the same for the same update? From what I recall, some services can change the name to include metadata like timestamp for every request, so the same file content always has a different file name. Impossible to cache.
-
Ya, unfortunately the URL keeps changing, but isnt that what dynamic content is? to catch even changing URLs?