Skip to content

Commit 8f1f711

Browse files
committed
Disable runtime cache for sandboxes
1 parent ea48b8e commit 8f1f711

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

packages/app/config/webpack.prod.js

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -111,16 +111,19 @@ module.exports = merge(commonConfig, {
111111
maximumFileSizeToCacheInBytes: 5242880,
112112

113113
runtimeCaching: [
114-
{
115-
urlPattern: /api\/v1\/sandboxes/,
116-
handler: 'networkFirst',
117-
options: {
118-
cache: {
119-
maxEntries: 50,
120-
name: 'sandboxes-cache',
121-
},
122-
},
123-
},
114+
// Don't add this runtime cache as this causes us to give back *old*
115+
// API responses, this will lead people to believe that they lost work
116+
// when they can't connect to our servers.
117+
// {
118+
// urlPattern: /api\/v1\/sandboxes/,
119+
// handler: 'networkFirst',
120+
// options: {
121+
// cache: {
122+
// maxEntries: 50,
123+
// name: 'sandboxes-cache',
124+
// },
125+
// },
126+
// },
124127
{
125128
urlPattern: /^https:\/\/unpkg\.com/,
126129
handler: 'cacheFirst',

0 commit comments

Comments
 (0)