diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-03-18 08:20:11 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-03-18 09:06:13 +0000 |
commit | 734133e15620584618df49e76ecabd7c28c72444 (patch) | |
tree | 94a515d17243f1dc4620a8a4c3d62261365cbe1f /lib | |
parent | 9af99455c06abd69d18fed751ea16d914e62cf84 (diff) | |
download | raindrops-734133e15620584618df49e76ecabd7c28c72444.tar.gz |
Set "Cache-Control: no-transform" to prevent frontend proxies from flushing data.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/raindrops/watcher.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/raindrops/watcher.rb b/lib/raindrops/watcher.rb index 40b53c5..52a8eff 100644 --- a/lib/raindrops/watcher.rb +++ b/lib/raindrops/watcher.rb @@ -339,7 +339,10 @@ class Raindrops::Watcher end def finish - headers = { "Content-Type" => "text/plain" } + headers = { + "Content-Type" => "text/plain", + "Cache-Control" => "no-transform", + } headers["Transfer-Encoding"] = "chunked" if @chunk [ 200, headers, self ] end |