Skip to content

Commit 3434f90

Browse files
author
timmydoza
authored
Update video sdk (#652)
* Update video SDK version * Fix caching issue in server
1 parent f2011d8 commit 3434f90

File tree

4 files changed

+24
-12
lines changed

4 files changed

+24
-12
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## 0.6.3 (March 2, 2022)
2+
3+
### Dependency Upgrades
4+
5+
- `twilio-video` has been upgraded from 2.19.0 to 2.20.1.
6+
7+
### Bugfix
8+
9+
- A problem was fixed in the [local server](server/index.ts) that caused index.html to be erroneously cached.
10+
111
## 0.6.2 (February 4, 2022)
212

313
### Dependency Upgrades

package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "twilio-video-app-react",
3-
"version": "0.6.2",
3+
"version": "0.6.3",
44
"private": true,
55
"license": "Apache-2.0",
66
"dependencies": {
@@ -43,7 +43,7 @@
4343
"strip-color": "^0.1.0",
4444
"ts-node": "^9.1.1",
4545
"twilio": "^3.63.1",
46-
"twilio-video": "^2.19.0",
46+
"twilio-video": "^2.20.1",
4747
"typescript": "^3.8.3"
4848
},
4949
"devDependencies": {

server/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,19 @@ app.use((req, res, next) => {
3030
// See: https://create-react-app.dev/docs/production-build/#static-file-caching
3131
if (req.path === '/' || req.path === 'index.html') {
3232
res.set('Cache-Control', 'no-cache');
33+
res.sendFile(path.join(__dirname, '../build/index.html'), { etag: false, lastModified: false });
3334
} else {
3435
res.set('Cache-Control', 'max-age=31536000');
36+
next();
3537
}
36-
next();
3738
});
39+
3840
app.use(express.static(path.join(__dirname, '../build')));
3941

4042
app.get('*', (_, res) => {
4143
// Don't cache index.html
4244
res.set('Cache-Control', 'no-cache');
43-
res.sendFile(path.join(__dirname, '../build/index.html'));
45+
res.sendFile(path.join(__dirname, '../build/index.html'), { etag: false, lastModified: false });
4446
});
4547

4648
app.listen(PORT, () => console.log(`twilio-video-app-react server running on ${PORT}`));

0 commit comments

Comments
 (0)