Forum Discussion
Larry_124999
May 14, 2013Nimbostratus
Hi Steve
The request and response captured in F5 via tcpdump are exactly the same as shown in HttpFox at client browser.
Here is an example of request header, all include Accept_Encoding tag
Host: 4.pushauction.com
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.79 Safari/535.11 QIHU THEWORLD
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Referer: http://4.pushauction.com/Listing/Listing.aspx?parentID=103&page=10&btn=hrefListOnline
Accept-Encoding: gzip,deflate,sdch
Accept-Language: zh-CN,zh;q=0.8
Accept-Charset: GBK,utf-8;q=0.7,*;q=0.3
Cookie: __utma=131059338.1972362686.1355392282.1355392282.1355392282.1; __utmz=131059338.1355392282.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); ASP.NET_SessionId=box1anmvqyav31sfstdpy2tc; Lang=en-us; cateid=; folderkey=
And only javascript / css got compressed in response, which include vary tag:
16:12:18.828781 IP (tos 0x0, ttl 255, id 49326, offset 0, flags [DF], proto: TCP (6), length: 40) 192.168.0.90.http > 112.90.90.17.ias-admind: ., cksum 0x96ed (correct), 1:1(0) ack 682 win 65535
....E..(..@.../....ZpZZ..P.](_.S....P.........
16:12:18.828781 IP (tos 0x0, ttl 255, id 49327, offset 0, flags [DF], proto: TCP (6), length: 1480) 192.168.0.90.http > 112.90.90.17.ias-admind: ., cksum 0x3e3b (correct), 1:1441(1440) ack 682 win 65535
....E.....@...*....ZpZZ..P.](_.S....P...>;..HTTP/1.1 200 OK
Date: Tue, 14 May 2013 08:12:18 GMT
Connection: Keep-Alive
Content-Type: text/css
Last-Modified: Wed, 09 Jan 2013 11:10:36 GMT
Accept-Ranges: bytes
ETag: "WA827ca453e86248d3"
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Expires: Thu, 16 May 2013 04:51:04 GMT
Cache-Control: public, max-age=172800, s-maxage=14400
Age: 11749
Content-Length: 8852
X-WA-Info: [S10101.C100018.A12236.RA0.U1196752467].[OT/all.OG/includes]
Vary: Accept-Encoding
F5 just not to compress plain text like this:
Cache-Control: private
Content-Type: text/xml; charset=utf-8
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Tue, 14 May 2013 08:06:57 GMT
Content-Length: 11877
X-WA-Info: [S10203.C100018.A12164.RA0.U0].[OT/xml.OG/pages]
More samples:
Cache-Control: private
Content-Type: text/html; charset=utf-8
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Tue, 14 May 2013 08:06:59 GMT
Content-Length: 7352
X-WA-Info: [S10203.C100018.A12164.RA0.U0].[OT/html.OG/pages]
Everything settings in F5 is so straight forward. However, I just cannot make F5 compress these plain text!
Thanks!
Larry