Skip to content

Commit

Permalink
Update __init__.py (#103)
Browse files Browse the repository at this point in the history
Added a header to prevent proxy caching when running behind nginx.
  • Loading branch information
rightbraindev authored and jettify committed Oct 6, 2018
1 parent 5eecb70 commit e50cdfd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions aiohttp_sse/__init__.py
Expand Up @@ -38,6 +38,7 @@ def __init__(self, *, status=200, reason=None, headers=None, sep=None):
self.headers['Content-Type'] = 'text/event-stream'
self.headers['Cache-Control'] = 'no-cache'
self.headers['Connection'] = 'keep-alive'
self.headers['X-Accel-Buffering'] = 'no'

self._loop = None
self._ping_interval = self.DEFAULT_PING_INTERVAL
Expand Down

0 comments on commit e50cdfd

Please sign in to comment.