Re: [squid-users] google mobile page is being cached by squid 3.2.0.13 but not on older versions.
On 28/10/11 14:01, Eliezer Croitoru wrote: 1319762961.344 0 192.168.10.32 TCP_MEM_HIT/200 2518 GET http://www.google.co.il/ - HIER_NONE/- application/xhtml+xml [Connection: Keep-Alive\r\nHost: www.google.co.il\r\nAccept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,image/png,*/*;q=0.5, application/vnd.nokia.headwrapper\r\nAccept-Charset: iso-8859-1,utf-8;q=0.7,*;q=0.7\r\nAccept-Encoding: gzip, deflate, x-gzip, identity; q=0.9\r\nAccept-Language: he;q=1.0,en;q=0.5,ar;q=0.5,ru;q=0.5\r\nCookie: PREF=ID=6fd7cd671b489527:U=61fd668bbde91a39:TM=1308834701:LM=1308834701:S=ys2TW8LoKLm7PDKH; MPRF=H4sIAKu4NqHxwBa1LiaGSUwKpqmJScbJBqlGKUYGiYYGpimpSYYmqUkmKabJRkaW5okTmBkAp8BnhjA; NID=52=aDJGrpOOv_UvxjuNWgf-HXZCPM9ZzF60Y6cmk6he2IosV2jBlAtBhSEkXW2NfRGUb5DpaVmpgu7_jgnsZUW-Y-qVw5uITnmJfXrxiokE4LdYgskJcb1Dl3TpqaYizG3j\r\nCookie2: $Version=1\r\nUser-Agent: Mozilla/5.0 (SymbianOS/9.3; Series60/3.2 NokiaE5-00.2/@version@; Profile/MIDP-2.1 Configuration/CLDC-1.1 ) AppleWebKit/525 (KHTML, like Gecko) Version/3.0 BrowserNG/7.2.6.2 3gpp-gba\r\nX-Nokia-MusicShop-Version: 09.0945.15\r\nPnP: ver=urn:liberty:PnP:2003-08; urn:http://pnpms.nokia.com/signkey\r\nX-Nokia-MusicShop-Bearer: WLAN\r\nx-wap-profile: http://nds1.nds.nokia.com/uaprof/NE5-00.2r100.xml\r\n] [HTTP/1.1 200 OK\r\nSet-Cookie: MPRF=H4sIAKu4NqHxwBa1LiaGSUwKpqmJScbJBqlGKUYGiYYGpimpSYYmqUkmKabJRkaW5okTmBkAp8BnhjA; expires=Sun, 17-Jan-2038 19:14:07 GMT; path=/; domain=.google.co.il\r\nExpires: Fri, 28 Oct 2011 00:48:57 GMT\r\nCache-Control: private, max-age=1209600 Bit of a strange header there. Expires: == Date: - stale immediately. private - must not be stored. max-age=1209600 - permitted to be stored. for up to 14 days 3.2 is supposed to be able to store stale responses. In case the server goes down and stale response (within max-age) is permitted. NP: private should have prevented that being stored. There seems to be a new bug there. I am aware that several caching compliance issues have been raised in 3.2 since SMP went in. Could you verify the cases this occurs and report please? (after a check that its not reported already of course). \r\nDate: Fri, 28 Oct 2011 00:48:57 GMT\r\nContent-Type: application/xhtml+xml; charset=UTF-8\r\nContent-Encoding: gzip\r\nX-Content-Type-Options: nosniff\r\nX-Frame-Options: SAMEORIGIN\r\nX-XSS-Protection: 1; mode=block\r\nServer: GSE\r\nX-Cache: MISS from cachx\r\nX-Cache-Lookup: MISS from cachx:3031\r\nTransfer-Encoding: chunked\r\nConnection: keep-alive\r\n\r] my refresh patterns #refresh patterns refresh_pattern -i ^http://www.google.co.il/ 0 0% 0 Matches, but does not have overrides. Cache-Control is present with specific caching info. So refresh_pattern estimate algorithm limits are not needed or used. Amos -- Please be using Current Stable Squid 2.7.STABLE9 or 3.1.16 Beta testers wanted for 3.2.0.13
Re: [squid-users] google mobile page is being cached by squid 3.2.0.13 but not on older versions.
On 29/10/2011 12:51, Amos Jeffries wrote: On 28/10/11 14:01, Eliezer Croitoru wrote: 1319762961.344 0 192.168.10.32 TCP_MEM_HIT/200 2518 GET http://www.google.co.il/ - HIER_NONE/- application/xhtml+xml [Connection: Keep-Alive\r\nHost: www.google.co.il\r\nAccept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,image/png,*/*;q=0.5, application/vnd.nokia.headwrapper\r\nAccept-Charset: iso-8859-1,utf-8;q=0.7,*;q=0.7\r\nAccept-Encoding: gzip, deflate, x-gzip, identity; q=0.9\r\nAccept-Language: he;q=1.0,en;q=0.5,ar;q=0.5,ru;q=0.5\r\nCookie: PREF=ID=6fd7cd671b489527:U=61fd668bbde91a39:TM=1308834701:LM=1308834701:S=ys2TW8LoKLm7PDKH; MPRF=H4sIAKu4NqHxwBa1LiaGSUwKpqmJScbJBqlGKUYGiYYGpimpSYYmqUkmKabJRkaW5okTmBkAp8BnhjA; NID=52=aDJGrpOOv_UvxjuNWgf-HXZCPM9ZzF60Y6cmk6he2IosV2jBlAtBhSEkXW2NfRGUb5DpaVmpgu7_jgnsZUW-Y-qVw5uITnmJfXrxiokE4LdYgskJcb1Dl3TpqaYizG3j\r\nCookie2: $Version=1\r\nUser-Agent: Mozilla/5.0 (SymbianOS/9.3; Series60/3.2 NokiaE5-00.2/@version@; Profile/MIDP-2.1 Configuration/CLDC-1.1 ) AppleWebKit/525 (KHTML, like Gecko) Version/3.0 BrowserNG/7.2.6.2 3gpp-gba\r\nX-Nokia-MusicShop-Version: 09.0945.15\r\nPnP: ver=urn:liberty:PnP:2003-08; urn:http://pnpms.nokia.com/signkey\r\nX-Nokia-MusicShop-Bearer: WLAN\r\nx-wap-profile: http://nds1.nds.nokia.com/uaprof/NE5-00.2r100.xml\r\n] [HTTP/1.1 200 OK\r\nSet-Cookie: MPRF=H4sIAKu4NqHxwBa1LiaGSUwKpqmJScbJBqlGKUYGiYYGpimpSYYmqUkmKabJRkaW5okTmBkAp8BnhjA; expires=Sun, 17-Jan-2038 19:14:07 GMT; path=/; domain=.google.co.il\r\nExpires: Fri, 28 Oct 2011 00:48:57 GMT\r\nCache-Control: private, max-age=1209600 Bit of a strange header there. Expires: == Date: - stale immediately. private - must not be stored. max-age=1209600 - permitted to be stored. for up to 14 days 3.2 is supposed to be able to store stale responses. In case the server goes down and stale response (within max-age) is permitted. NP: private should have prevented that being stored. There seems to be a new bug there. I am aware that several caching compliance issues have been raised in 3.2 since SMP went in. Could you verify the cases this occurs and report please? (after a check that its not reported already of course). \r\nDate: Fri, 28 Oct 2011 00:48:57 GMT\r\nContent-Type: application/xhtml+xml; charset=UTF-8\r\nContent-Encoding: gzip\r\nX-Content-Type-Options: nosniff\r\nX-Frame-Options: SAMEORIGIN\r\nX-XSS-Protection: 1; mode=block\r\nServer: GSE\r\nX-Cache: MISS from cachx\r\nX-Cache-Lookup: MISS from cachx:3031\r\nTransfer-Encoding: chunked\r\nConnection: keep-alive\r\n\r] my refresh patterns #refresh patterns refresh_pattern -i ^http://www.google.co.il/ 0 0% 0 I know that... i just tried another option of something that might cause it but the google pattern was cause i dont know the exact code of squid. for now im working with 3.2.0.5 cause it's the stablest version of 3.2 that i have used. my friend is using 3.2.0.8 on a production machine as a TPROXY and i dont like the results. the .8 version has sometime problem doing dns lookups but it's his problem finding it out. im working on a normal way to explain how to use TPROXY on ubuntu 10.04. i managed to understand how ebtables and iptables are working with tproxy so i have one virtual machine (part of a network) that is working as a bridge and TPROXY. hope to publish the manual of building tproxy bridge machine using ubuntu from scratch. (the cases are of a mobile phone browsing the web using the wifi and after the computer tries to load the page but a force refresh is solving the case most of the time.) Thanks Elizer Matches, but does not have overrides. Cache-Control is present with specific caching info. So refresh_pattern estimate algorithm limits are not needed or used. Amos
[squid-users] google mobile page is being cached by squid 3.2.0.13 but not on older versions.
1319762961.344 0 192.168.10.32 TCP_MEM_HIT/200 2518 GET http://www.google.co.il/ - HIER_NONE/- application/xhtml+xml [Connection: Keep-Alive\r\nHost: www.google.co.il\r\nAccept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,image/png,*/*;q=0.5, application/vnd.nokia.headwrapper\r\nAccept-Charset: iso-8859-1,utf-8;q=0.7,*;q=0.7\r\nAccept-Encoding: gzip, deflate, x-gzip, identity; q=0.9\r\nAccept-Language: he;q=1.0,en;q=0.5,ar;q=0.5,ru;q=0.5\r\nCookie: PREF=ID=6fd7cd671b489527:U=61fd668bbde91a39:TM=1308834701:LM=1308834701:S=ys2TW8LoKLm7PDKH; MPRF=H4sIAKu4NqHxwBa1LiaGSUwKpqmJScbJBqlGKUYGiYYGpimpSYYmqUkmKabJRkaW5okTmBkAp8BnhjA; NID=52=aDJGrpOOv_UvxjuNWgf-HXZCPM9ZzF60Y6cmk6he2IosV2jBlAtBhSEkXW2NfRGUb5DpaVmpgu7_jgnsZUW-Y-qVw5uITnmJfXrxiokE4LdYgskJcb1Dl3TpqaYizG3j\r\nCookie2: $Version=1\r\nUser-Agent: Mozilla/5.0 (SymbianOS/9.3; Series60/3.2 NokiaE5-00.2/@version@; Profile/MIDP-2.1 Configuration/CLDC-1.1 ) AppleWebKit/525 (KHTML, like Gecko) Version/3.0 BrowserNG/7.2.6.2 3gpp-gba\r\nX-Nokia-MusicShop-Version: 09.0945.15\r\nPnP: ver=urn:liberty:PnP:2003-08; urn:http://pnpms.nokia.com/signkey\r\nX-Nokia-MusicShop-Bearer: WLAN\r\nx-wap-profile: http://nds1.nds.nokia.com/uaprof/NE5-00.2r100.xml\r\n] [HTTP/1.1 200 OK\r\nSet-Cookie: MPRF=H4sIAKu4NqHxwBa1LiaGSUwKpqmJScbJBqlGKUYGiYYGpimpSYYmqUkmKabJRkaW5okTmBkAp8BnhjA; expires=Sun, 17-Jan-2038 19:14:07 GMT; path=/; domain=.google.co.il\r\nExpires: Fri, 28 Oct 2011 00:48:57 GMT\r\nCache-Control: private, max-age=1209600\r\nDate: Fri, 28 Oct 2011 00:48:57 GMT\r\nContent-Type: application/xhtml+xml; charset=UTF-8\r\nContent-Encoding: gzip\r\nX-Content-Type-Options: nosniff\r\nX-Frame-Options: SAMEORIGIN\r\nX-XSS-Protection: 1; mode=block\r\nServer: GSE\r\nX-Cache: MISS from cachx\r\nX-Cache-Lookup: MISS from cachx:3031\r\nTransfer-Encoding: chunked\r\nConnection: keep-alive\r\n\r] my refresh patterns #refresh patterns refresh_pattern -i ^http://www.google.co.il/ 0 0% 0 refresh_pattern -i ^http://.*(myoga\.com)/.*(flv|swf|jpg|jpeg|ico|png|gif|html|htm|css|js) 4320 70% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-store refresh_pattern -i \.blip\.tv\/(.*)\.(flv|avi|mov|mp3|m4v|mp4|wmv|rm|ram|m4v) 4320 70% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-no-store refresh_pattern -i ^http://.*haravelon\.org*/.*(swf) 365 70% 1440 reload-into-ims ignore-reload refresh_pattern -i ^http://.*haravelon\.org*/.*(flv|jpg|jpeg|ico|png|gif|css|js) 4320 70% 10080 reload-into-ims ignore-reload refresh_pattern -i ^http://.*(windowsupdate\.com|download\.microsoft\.com)/.*\.(cab|exe) 4320 100% 43200 reload-into-ims override-expire override-lastmod ignore-no-cache ignore-no-store #might cause google cahce problem refresh_pattern -i ^http://.*\.(google\.com|gstatic\.com).*\.(jpg|gif|png|js) 10080 300% 40320 reload-into-ims refresh_pattern -i ^http://.*(a7\.org/|crunchyroll\.com/|\.yimg\.com|\.ytimg\.com).*\.(swf|tiff|tif|js|wmv|gif|png|jpg|jpeg|ico) 4320 90% 10080 override-expire override-lastmod reload-into-ims ignore-reload$ refresh_pattern -i ^http://.*(etutorials\.org) 4320 90% 43200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private refresh_pattern -i ^http://.*\.(torrent)$ 4320 90% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private refresh_pattern -i \.(mpg|mpe|wav|au|mid)$ 4320 100% 43200 override-expire ignore-no-cache refresh_pattern -i \.(arj|lha|lzh)$ 4320 90% 43200 override-expire refresh_pattern -i \.(inc|cab|ad|txt|dll)$ 4320 100% 43200 override-expire refresh_pattern -i \.(gif|png|jpg|jpeg|ico|pdf)$ 4320 50% 43200 override-expire reload-into-ims refresh_pattern -i \.(torrent)$ 4320 50% 43200 override-expire reload-into-ims refresh_pattern -i ^http://.*adframe.php.* 4320 100% 10080 override-expire reload-into-ims ignore-no-cache refresh_pattern -i \.(iso|avi|wav|mp3|mp4|mpeg|swf|flv|x-flv)$ 365 90% 1440 override-expire reload-into-ims refresh_pattern -i \.(deb|rpm|exe|zip|tar|tgz|ram|rar|bin|ppt|doc|tiff)$ 10080 90% 43200 override-expire ignore-no-cache ignore-no-store ignore-private refresh_pattern -i \.index.(html|htm)$ 0 40% 10080 refresh_pattern -i \.(html|htm|css|js)$ 0 40% 1440 reload-into-ims # Add any of your own refresh_pattern entries above these. refresh_pattern ^ftp: 144020% 10080 refresh_pattern ^gopher:14400% 1440 refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 Thanks Eliezer