Skip to content

Commit 79e425b

Browse files
author
Ives van Hoorne
committed
Fix the packager caching
1 parent 2718e89 commit 79e425b

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

config/webpack.prod.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -162,16 +162,6 @@ module.exports = merge(commonConfig, {
162162
},
163163
},
164164
},
165-
{
166-
urlPattern: /api\/v1\/sandboxes/,
167-
handler: 'networkFirst',
168-
options: {
169-
cache: {
170-
maxEntries: 50,
171-
name: 'sandboxes-cache',
172-
},
173-
},
174-
},
175165
{
176166
urlPattern: /\.amazonaws\.com\/prod\/package/,
177167
handler: 'fastest',
@@ -189,6 +179,7 @@ module.exports = merge(commonConfig, {
189179
options: {
190180
cache: {
191181
maxEntries: 100,
182+
maxAgeSeconds: 60 * 60 * 24,
192183
name: 'packager-cache',
193184
},
194185
},

src/sandbox/npm/fetch-dependencies.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function callApi(url: string) {
2323
.then(response => response.json());
2424
}
2525

26-
export const PACKAGER_URL = 'https://webpack-dll-prod.herokuapp.com/v6';
26+
export const PACKAGER_URL = 'https://webpack-dll-prod.herokuapp.com/v5';
2727
export const NEW_PACKAGER_URL =
2828
'https://drq28qbjmc.execute-api.eu-west-1.amazonaws.com/prod/packages';
2929

0 commit comments

Comments
 (0)