• Stars
    star
    361
  • Rank 117,957 (Top 3 %)
  • Language
    Ruby
  • License
    MIT License
  • Created almost 12 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Enable gzip compression on heroku, but don't compress images.

heroku-deflater

A simple rack middleware that enables compressing of your sprockets and webpacker assets and application responses on Heroku, while not wasting CPU cycles on pointlessly compressing images and other binary responses.

It also includes code from https://github.com/mattolson/heroku_rails_deflate

Before serving a file from disk to a gzip-enabled client, it will look for a precompressed file in the same location that ends in ".gz". The purpose is to avoid compressing the same file each time it is requested.

Installing

Add to your Gemfile:

gem 'heroku-deflater', :group => :production

Contributing to heroku-deflater

  • Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
  • Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
  • Fork the project.
  • Start a feature/bugfix branch.
  • Commit and push until you are happy with your contribution.
  • Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
  • Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.

Copyright

Copyright (c) 2012 Roman Shterenzon. See LICENSE.txt for further details.

More Repositories

1

fast-stemmer

Fast Porter stemmer based on a C version of the algorithm
C
103
star
2

spdy

SPDY daemon and rack adapter
C++
60
star
3

statsd-c-client

A trivial statsd client in C
C
53
star
4

rb-gsl

A git-svn mirror of rb-gsl with my changes, namely NMF support
C
44
star
5

received

Receiving mail into Rails has never been easier! LMTP server which delivers to MongoDB.
Ruby
44
star
6

passenger_monit

Passenger monitoring with Monit
Ruby
40
star
7

mongoid_colored_logger

Beautiful logging for Mongoid
Ruby
26
star
8

livejournal

Ruby client for LiveJournal (migrated from the darcs repo)
Ruby
18
star
9

qiwi

Ruby framework for integration with the Qiwi payment system
Ruby
15
star
10

musiXmatch

Objective-C library for accessing the musiXmatch API
Objective-C
15
star
11

curb-openuri

openuri drop-in replacement that uses curb
Ruby
13
star
12

hstore-document

Embedded documents in ActiveRecord on PostgreSQL with Hstore
Ruby
10
star
13

activerecord-postgres-json

PostgreSQL JSON and JSONB field support for ActiveRecord 3.2, 4.0 and 4.1
Ruby
10
star
14

kannel-mongodb

Kannel mirror with MongoDB DLR storage support and other features
C
9
star
15

sprockets-emblem

A minimal integration of Emblem.js with Sprockets
Ruby
7
star
16

c-icap-ruby

Ruby handler for c-icap
Shell
6
star
17

squid

Squid 2.7 + ICAP + more patches. See SQUID_2_7 branch.
C
5
star
18

jsmin-ffi

FFI Javascript minifier
C++
4
star
19

hunspell

Ruby bindings to Hunspell 1.2.x with iconv support
C
4
star
20

rlm_memcache

memcache module for FreeRADIUS - put accounting records directly into cache
3
star
21

livequery

Efficient Java implementation of Parse LiveQuery server
Java
3
star
22

tiny_midi_player

Synthesize audio using TinySoundFont
C++
3
star
23

vcdiff

Open-VCDiff wrapper
C++
2
star
24

actionsms

SMS library inspired by ActionMailer
Ruby
2
star
25

libspeexdsp

Speex libspeexdsp ported to Apple's Accelerate framework
C
2
star
26

vdsp

Port of Apple's vDSP (Accelerate) framework to Android
C
1
star
27

logentries

Logentries logger
Ruby
1
star
28

ispell

ruby interface to Ispell spell checker
Ruby
1
star
29

inklet

Foundation Ink Rails helpers
Ruby
1
star