Navigation Menu

Skip to content

mrkurt/cloudseed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Rack middleware for CloudFront custom origins

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages