kopia lustrzana https://github.com/cheeaun/phanpy
Reduce storage usage
rodzic
1f2dbb8e06
commit
8fdc430dd5
|
@ -21,8 +21,8 @@ const imageRoute = new Route(
|
||||||
cacheName: 'remote-images',
|
cacheName: 'remote-images',
|
||||||
plugins: [
|
plugins: [
|
||||||
new ExpirationPlugin({
|
new ExpirationPlugin({
|
||||||
maxEntries: 100,
|
maxEntries: 50,
|
||||||
maxAgeSeconds: 7 * 24 * 60 * 60, // 7 days
|
maxAgeSeconds: 3 * 24 * 60 * 60, // 3 days
|
||||||
purgeOnQuotaError: true,
|
purgeOnQuotaError: true,
|
||||||
}),
|
}),
|
||||||
new CacheableResponsePlugin({
|
new CacheableResponsePlugin({
|
||||||
|
|
Ładowanie…
Reference in New Issue