Skip to content

Commit 996c2bc

Browse files
committed
Add a cache-control header to Chapter 21 responses
To work around a Chrome issue where it'd hold up a request in one tab when another tab was still polling the same URL.
1 parent f6ef8c4 commit 996c2bc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

21_skillsharing.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,8 @@ SkillShareServer.prototype.talkResponse = function() {
570570
return {
571571
body: JSON.stringify(talks),
572572
headers: {"Content-Type": "application/json",
573-
"ETag": `"${this.version}"`}
573+
"ETag": `"${this.version}"`,
574+
"Cache-Control": "no-store"}
574575
};
575576
};
576577
```

0 commit comments

Comments
 (0)