我在查詢Azure表存儲時發現,有效負載在傳輸中不會傳遞gzip。Howto允許GZIP進行Azure表存儲查詢
這裏是頭由小提琴手檢查
發送:
GET http://account.table.core.windows.net/sometable() HTTP/1.1
User-Agent: Microsoft ADO.NET Data Services
DataServiceVersion: 2.0;NetFx
MaxDataServiceVersion: 2.0;NetFx
x-ms-version: 2011-08-18
x-ms-date: Mon, 13 Aug 2012 02:23:48 GMT
Authorization: SharedKeyLite xxxxxxxxxxxxx=
Accept: application/atom+xml,application/xml
Accept-Charset: UTF-8
Host: account.table.core.windows.net
接收
HTTP/1.1 200 OK
Cache-Control: no-cache
Content-Type: application/atom+xml;charset=utf-8
Server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
x-ms-request-id: 254e470e-c50d-409b-8429-3d5bc9beabaa
x-ms-version: 2011-08-18
Date: Mon, 13 Aug 2012 02:23:37 GMT
Content-Length: 168553
XML內容,其長度爲168K,如果gzip壓縮,大約只有40K,所以,我的問題是:在哪裏以及如何允許gzip進行Azure表查詢?
通過nginx路由請求? – 2012-08-13 14:30:34