[squid-users] a problem about reverse proxy and $.ajax

Amos Jeffries squid3 at treenet.co.nz
Fri Jul 17 10:36:27 UTC 2015


On 17/07/2015 8:08 p.m., Kinkie wrote:
> Hi,
>   What is in the squid access.log for that request?
> 

... and the cache.log output for it when "debug_options 11,2" is used.

Amos

> On Thu, Jul 16, 2015 at 5:27 PM, johnzeng wrote:
> 
>>
>> Hello dear All :
>>
>> i am writing testing download rate program recently ,
>>
>> and i hope use reverse proxy ( squid 3.5.x) too ,
>>
>> but if we use reverse proxy and i found Ajax won[t succeed to download
>>
>> , and success: function(html,textStatus) -- return value ( html ) is blank
>> .
>>
>>
>> if possible , please give me some advisement .
>>
>>
>>
>> squid config
>>
>> http_port 4432 |accel| vport defaultsite=10.10.130.91
>> |cache_peer 127.0.0.1 parent 80 0 default name=ubuntu-lmr  |
>>
>>
>>
>> Ajax config
>>
>> $.ajax({
>> type: "GET",
>> url: load_urlv,
>> cache: false,
>> mimeType: 'text/plain; charset=x-user-defined',
>>
>> beforeSend: function(){
>> $('#time0').html('<blink>download file...</blink>').show();
>> },
>>
>> error: function(){
>> alert('Error loading XML document');
>> },
>> success: function(html,textStatus)
>> {
>>
>> ...........................
>>
>> }
>>
>>
>> _______________________________________________
>> squid-users mailing list
>> squid-users at lists.squid-cache.org
>> http://lists.squid-cache.org/listinfo/squid-users
>>
> 
> 
> 
> 
> 
> _______________________________________________
> squid-users mailing list
> squid-users at lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
> 



More information about the squid-users mailing list