On 27/05/18 07:21, Willsz CS wrote: > Hi, > > I'am running squid with transparent mode, browsing several site from > client something like www.cintapoker88.com > <http://www.cintapoker88.com>, but get strange garbage character > (https://ibb.co/kcEGfo for clearly picture). I guessing my ISP running > transparent proxy too for censorship. For temporary solution is > unredirection HTTP rule to Squid. Anyone help me for clue this problem? > This display happens when the browser is being told the response object is or one type (eg HTML/XML text), but it is actually binary content (eg an image, or compressed object). Usually when fetching the main HTML index object, images, or video content - things which are displayed directly to the user. It usually occurs because: A) an admin forces things to be cached by a proxy and served from cache despite instructions from the website author on the HTTP response that caching is not permitted for that object. - check your squid.conf for any refresh_pattern directives with override-* or ignore-* options which might be forcing things to be cached when they are not supposed to. BE VERY careful and conservative with your use of regex patterns. - current Squid versions "squid -k parse" command should provide you nice loud WARNING messages about any of these options if it is possibly going to cause the types of issue you can see. The text will mention violating HTTP and you being responsible for the issues cased (if any). or, B) the web server is not sending Vary headers consistently and the proxy cache ends up thinking that a compressed object is possible to be sent to clients only accepting plain-text objects. - this one there is not much you can do except to prevent these particular URLs not to be cashed by your own proxy. Both cases result in the client sometimes displaying binary octets as if they were plain text, as you can see in that demo image. More often they occur with scripts and nothing gets displayed - just parts of the website dont work properly (no scrolling, missing content, or unclickable buttons, etc). The tool at (<https://redbot.org/?descend=True&uri=http://www.cintapoker88.com/&check_name=default>) indicates that some (but only a very few) of the javascripts being used by that website have Vary header issues. The images pulled from Imgur have some serious problems So it depends on exactly which URL(s) you are having trouble with. You can plug them into that redbot tool to get an analysis of particular URL. Also, it would help to know which Squid version you are using and which OS distro you use it on. If you are unsure of your regex_pattern rules please post your squid.conf and we can assist pointing out any unsuspected issues there. HTH Amos _______________________________________________ squid-users mailing list squid-users@xxxxxxxxxxxxxxxxxxxxx http://lists.squid-cache.org/listinfo/squid-users