From 5eddf37be8c6d6dbbf3c70237a8dba1363128bba Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Sun, 21 Jan 2024 21:01:18 +0800 Subject: [PATCH] img-cache --- lib/notion/mapImage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/notion/mapImage.js b/lib/notion/mapImage.js index f03a88e1..c0711e6a 100644 --- a/lib/notion/mapImage.js +++ b/lib/notion/mapImage.js @@ -87,7 +87,7 @@ const compressImage = (image, width = 800, quality = 50, fmt = 'webp') => { return null } if (image.indexOf(BLOG.NOTION_HOST) === 0 && image.indexOf('amazonaws.com') > 0) { - return `${image}&width=${width}` + return `${image}&width=${width}&cache=v2` } // 压缩unsplash图片 if (image.indexOf('https://images.unsplash.com/') === 0) {