Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Rack middleware for CloudFront custom origins

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 Gemfile
Octocat-spinner-32 LICENSE
Octocat-spinner-32 Rakefile
Octocat-spinner-32 cloudseed.gemspec


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:

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
Something went wrong with that request. Please try again.