Can I tell JsonpRequestBuilder to accept gzip/deflate encoding?

58 views
Skip to first unread message

hbf

unread,
Jan 11, 2012, 10:17:45 AM1/11/12
to Google Web Toolkit
Dear all,

I am doing JSONP requests using JsonpRequestBuilder and observe that
it does not send any header like

Accept-Encoding:gzip, deflate

to the server to allow compression of the JSON payload.

Is there a way to enable compression?

Best,
Kaspar

Thomas Broyer

unread,
Jan 11, 2012, 10:23:53 AM1/11/12
to google-we...@googlegroups.com
JSON-P works by dynamically injecting a <script> element in your page to load some JavaScript (yes, no JSON here, despite the name). The browser is responsible for making the request, there's nothing you can do to make it behave in one way or another.
Reply all
Reply to author
Forward
0 new messages