Project

cloudseed

0.01
No commit activity in last 3 years
No release in over 3 years
CloudSeed is a Rack-based utility to manage backend delivery of CloudFront custom origins.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 1.0.0
 Project Readme

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