[squid-users] Multipart response

From: anita <anita.sivakumar_at_wipro.com>
Date: Thu, 18 Jul 2013 02:59:23 -0700 (PDT)

Hi All,

I am trying to understand the range_offset_limit in squid.conf
I am using squid 3.1.16. My squid conf file is the default
(range_offset_limit - 0)
I have a fairly large enough sample file (9615 bytes).
I try to request 2 byte ranges from this:

GET /p1.html HTTP/1.1
Host: 10.145.66.197
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:18.0) Gecko/20100101
Firefox/18.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Range: bytes=5-10, 11-2000
Connection: keep-alive

HTTP/1.0 206 Partial Content
Date: Thu, 18 Jul 2013 09:10:18 GMT
Server: Apache/2.2.15 (Red Hat)
Last-Modified: Thu, 04 Jul 2013 10:22:26 GMT
Etag: "283841-258f-4e0acf46ca1e4"
Accept-Ranges: bytes
X-Cache: MISS from prefetch.net, MISS from UdalennuiTerminal
Content-Type: multipart/byteranges;
boundary="squid/3.1.16:37DDD4225D8B6FFB6253B91E876F090D"
Content-Length: 2302
Via: 1.0 prefetch.net (squid/3.1.16), 1.0 UdalennuiTerminal (squid/3.1.16)
Connection: keep-alive
----------------------------------------------------------

Now when I request multiple ranges, this is the data that seems to flow over
port 3128:
/HTTP/1.0 206 Partial Content
Date: Thu, 18 Jul 2013 09:10:18 GMT
Server: Apache/2.2.15 (Red Hat)
Last-Modified: Thu, 04 Jul 2013 10:22:26 GMT
ETag: "283841-258f-4e0acf46ca1e4"
Accept-Ranges: bytes
X-Cache: MISS from prefetch.net
Via: 1.0 prefetch.net (squid/3.1.16)
Connection: keep-alive
Content-Type: multipart/byteranges;
boundary="squid/3.1.16:37DDD4225D8B6FFB6253B91E876F090D"
Content-Length: 2302

--squid/3.1.16:37DDD4225D8B6FFB6253B91E876F090D
Content-Type: text/html; charset=UTF-8
Content-Range: bytes 5-10/9615

is p1
--squid/3.1.16:37DDD4225D8B6FFB6253B91E876F090D
Content-Type: text/html; charset=UTF-8
Content-Range: bytes 11-40/9615

file. This is p1 file. This is p1 file. This is pq file. This is pp file.
This is po file. This is pn file. This is pm file. This is pl file. This is
pk file. /

However, the browser seems to pick only the latter chunk corresponding to
the 2nd range. Any idea why?

Thanks.

Regards,
Anita

--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/Multipart-response-tp4661159.html
Sent from the Squid - Users mailing list archive at Nabble.com.
Received on Thu Jul 18 2013 - 10:00:15 MDT

This archive was generated by hypermail 2.2.0 : Thu Jul 18 2013 - 12:00:23 MDT