@decocms/start 0.37.1 → 0.37.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/sdk/workerEntry.ts +5 -3
package/package.json
CHANGED
package/src/sdk/workerEntry.ts
CHANGED
|
@@ -873,10 +873,12 @@ export function createDecoWorkerEntry(
|
|
|
873
873
|
return resp;
|
|
874
874
|
}
|
|
875
875
|
|
|
876
|
-
//
|
|
877
|
-
|
|
876
|
+
// Clone for cache BEFORE dressResponse consumes the body stream.
|
|
877
|
+
// dressResponse() calls new Response(resp.body, resp) which locks
|
|
878
|
+
// the ReadableStream. Calling clone() on a locked body corrupts
|
|
879
|
+
// the stream in Workers runtime, causing Error 1101.
|
|
878
880
|
storeInCache(origin);
|
|
879
|
-
return
|
|
881
|
+
return dressResponse(origin, "MISS");
|
|
880
882
|
},
|
|
881
883
|
};
|
|
882
884
|
}
|