File tree Expand file tree Collapse file tree
mothership/request/session Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11/**
2- * Standard headers for Server-Sent Events responses
2+ * Standard headers for Server-Sent Events responses. `no-transform` keeps Next's response
3+ * compression and intermediaries from buffering the stream to compress it.
34 */
45export const SSE_HEADERS = {
56 'Content-Type' : 'text/event-stream' ,
6- 'Cache-Control' : 'no-cache' ,
7+ 'Cache-Control' : 'no-cache, no-transform ' ,
78 Connection : 'keep-alive' ,
89 'X-Accel-Buffering' : 'no' ,
910} as const
Original file line number Diff line number Diff line change @@ -14,7 +14,4 @@ export function encodeSSEEnvelope(envelope: unknown): Uint8Array {
1414 return encoder . encode ( `data: ${ JSON . stringify ( presented ) } \n\n` )
1515}
1616
17- export const SSE_RESPONSE_HEADERS = {
18- ...SSE_HEADERS ,
19- 'Content-Encoding' : 'none' ,
20- } as const
17+ export const SSE_RESPONSE_HEADERS = SSE_HEADERS
Original file line number Diff line number Diff line change @@ -69,7 +69,6 @@ async function verifyStreamedDownload(
6969 signal : AbortSignal . timeout ( 90_000 ) ,
7070 } )
7171 assert . equal ( response . status , 200 )
72- assert . equal ( Number ( response . headers . get ( 'content-length' ) ) , expectedBytes )
7372 assert . ok ( response . body )
7473 const reader = response . body . getReader ( )
7574 const hash = createHash ( 'sha256' )
Original file line number Diff line number Diff line change 1818 // invalidate the cache.
1919 "cacheMaxAge" : " 7d" ,
2020 "cacheMaxSize" : " 40GB" ,
21+ // Bun applies `patches/*` to installed dependencies, but `bun.lock` records only each patch's
22+ // path, so editing a patch leaves every task hash unchanged and replays a build of the
23+ // unpatched dependency. Hash the patch contents into every task.
24+ "globalDependencies" : [" patches/**" ],
2125 "tasks" : {
2226 "ci:runtime" : {
2327 "dependsOn" : [" ^ci:runtime" ],
You can’t perform that action at this time.
0 commit comments