Rack middleware for CloudFront custom origins
Ruby
Latest commit afbd11b Nov 15, 2011 @mrkurt Bumping gem version
Permalink
Failed to load latest commit information.
lib Adding far future expires header, attempting to fix travis Nov 15, 2011
test
.gitignore
.travis.yml Adding far future expires header, attempting to fix travis Nov 15, 2011
Gemfile Adding a source to gemfile Nov 15, 2011
LICENSE Initial commit Feb 14, 2011
README.md
Rakefile
cloudseed.gemspec

README.md

CloudSeed

CloudSeed is a middleware helper for CloudFront custom origins. It tweaks requests to make them work better with CloudFront:

  • Adds a Vary header for GZIP compressable content
  • Looks for CloudFront compatible version tags on URLs (CloudFront ignores querystrings, this uses URLs like: http://example.com/resource.v1234.gif

If you want to use this for static assets in a Rails 3 app (the /public/ directory), make sure you insert it before ActionDispatch::Static, this line in config/application.rb works:

config.middleware.insert_before ActionDispatch::Static, CloudSeed::Middleware