lib/jugglite/app.rb in jugglite-0.0.2.alpha vs lib/jugglite/app.rb in jugglite-0.0.3
- old
+ new
@@ -3,10 +3,13 @@
module Jugglite
# Let's go for plain Rack y'all
class App
AsyncResponse = [-1, {}, []].freeze
- Headers = {'Content-Type' => 'text/event-stream;charset=utf-8'}
+ Headers = {
+ 'Content-Type' => 'text/event-stream;charset=utf-8',
+ 'Cache-Control' => 'no-cache' # IE (through the Polyfill) will trip without this
+ }
# Options include:
# +path+ : the URI path to listen to ('/stream')
# +keepalive_timeout+ : the timeout in seconds between keepalive comments
def initialize(app = nil, options = {})