WCF Data Services Feature Suggestions

Easily Compress Traffic between Client and Server

gzip, deflate

240 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Mike FlaskoAdminMike Flasko (Lead Program Manager, DataFx) shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    5 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...
      • Glenn GaileyGlenn Gailey commented  ·   ·  Flag as inappropriate

        This is a big deal for Windows Phone-based OData apps as there is literally no workaround to enable gzip. Even the hacks that work for WCF clients in Silverlight can't be used with the OData client for Windows Phone, and phone customers are (for obvious reasons) very sensitive to network utilization.

      • Asbjørn UlsbergAsbjørn Ulsberg commented  ·   ·  Flag as inappropriate

        WCF creates the client-side proxy and if it doesn't include "Accept-Encoding: gzip", this is something that has to be enabled in WCF for the client-side proxy. For the server-side, enabling this in IIS will probably be sufficient.

      • HongHong commented  ·   ·  Flag as inappropriate

        HTTP protocol defines mechanism to negotiate compression between client and server. OData should leverage the existing industory standard.
        sample headers of request:
        Accept-Encoding="gzip, compress"
        Content-Encoding="gzip"
        sample header of response:
        Content-Encoding="gzip"

      • Dave RussellDave Russell commented  ·   ·  Flag as inappropriate

        I believe the currently generated client-side proxy sends requests that don't pass the "Supports GZIP / DEFLATE" headers - and that there is no exposed client-side hook that lets you override this behaviour - regardless of whether the transport supports it or not.

      • Kristofer AnderssonKristofer Andersson commented  ·   ·  Flag as inappropriate

        umm, the choice to use gzip is a transport level thing, configurable in IIS. No need to deal with that at the service level IMO...(?)

      Feedback and Knowledge Base