img-cache

This commit is contained in:
tangly1024
2024-01-21 21:01:18 +08:00
parent 9278519b50
commit 5eddf37be8

View File

@@ -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) {