Skip to content

Commit 29d9090

Browse files
committed
Update client-channel.js
1 parent 83274e8 commit 29d9090

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

worker/client-channel.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,14 @@ const workerChannel = new BroadcastChannel('worker-channel');
6868

6969

7070
// create Response from data
71-
function createResponse(data, type, status) {
71+
function createResponse(data, type, status, cache) {
7272

7373
let headers = {
7474
'Content-Type': type
7575
};
7676

77+
if (!cache) headers['Cache-Control'] = 'public, max-age=0, must-revalidate';
78+
7779
// create Response from data
7880
const response = new Response(data, {
7981
headers: headers,

0 commit comments

Comments
 (0)