This project is archived and is in readonly mode.

#2070 ✓stale
Bart ten Brinke

Gzip / Deflate support for ActiveResource

Reported by Bart ten Brinke | February 25th, 2009 @ 01:16 PM | in 3.x

At the moment ActiveResource does not support gzip/deflate. As it does use XML as a transfer medium, this becomes highly inefficient with large datasets.

Gzip is one of the oldest remedies for this, and all major application servers for rails support it, but activeresource doesn't.

To enable: have ZLib installed and add this tou your ActiveResource base class: base.headers['Accept-Encoding'] = 'deflate'

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Attachments

Pages