fastify-sse-v2
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -9,2 +9,6 @@ # Changelog | ||
## [2.0.1] | ||
## Bugfix | ||
- add headers to prevent compression | ||
## [2.0.0] | ||
@@ -30,3 +34,4 @@ ## Feature | ||
[Unreleased]: https://github.com/nodefactoryio/fastify-sse-v2/compare/v2.0.0...HEAD | ||
[Unreleased]: https://github.com/nodefactoryio/fastify-sse-v2/compare/v2.0.1...HEAD | ||
[2.0.0]: https://github.com/nodefactoryio/fastify-sse-v2/compare/v2.0.0...v2.0.1 | ||
[2.0.0]: https://github.com/nodefactoryio/fastify-sse-v2/compare/v1.0.4...v2.0.0 | ||
@@ -33,0 +38,0 @@ [1.0.4]: https://github.com/nodefactoryio/fastify-sse-v2/compare/v1.0.3...v1.0.4 |
@@ -20,3 +20,3 @@ "use strict"; | ||
})); | ||
this.type("text/event-stream").header("Connection", "keep-alive").header("Cache-Control", "no-cache"); | ||
this.type("text/event-stream").header("Connection", "keep-alive").header("Cache-Control", "no-cache,no-transform").header("x-no-compression", true); | ||
(0, _itToStream.default)((0, _sse.transformAsyncIterable)(source)).pipe(outputStream); | ||
@@ -23,0 +23,0 @@ }); |
{ | ||
"name": "fastify-sse-v2", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Fastify plugin for sending server side events.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -16,5 +16,6 @@ import {EventMessage, FastifyPluginAsync, FastifyReply} from "fastify"; | ||
.header("Connection", "keep-alive") | ||
.header("Cache-Control", "no-cache"); | ||
.header("Cache-Control", "no-cache,no-transform") | ||
.header("x-no-compression", true); | ||
toStream(transformAsyncIterable(source)).pipe(outputStream); | ||
}); | ||
}; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17202
190