firehoseio / firehose

Build realtime Ruby web applications. Created by the fine folks at Poll Everywhere.
http://firehose.io/
MIT License
726 stars 72 forks source link

Make channel TTL more explicit with the `X-Firehose-TTL` HTTP header #37

Open bradgessler opened 10 years ago

bradgessler commented 10 years ago

Our Firehose::Client::Producer code currently controls how long Redis keeps our message buffer in memory via the Cache-Control: max-age=#{n} header, which I'm pretty sure breaks the HTTP spec.

Use a more explicit header (like X-Firehose-TTL) to instruct Redis in seconds how long it should hang on to the message buffer before it expires.