Reached Image Transformation Limit on Vercel – Need Solution for Static Images
Unanswered
Poodle posted this in #help-forum
PoodleOP
Hi everyone! I’ve reached the image transformation limit on Vercel, and I’m looking for a solution. All my images are static and only need resizing, but it seems they are being transformed every time someone visits the site.
Would using Cloudflare Images for resizing help reduce the load on Vercel? Or would setting minimumCacheTTL: 2678400 (31 days) for caching work better since the images don’t change often?
Would using Cloudflare Images for resizing help reduce the load on Vercel? Or would setting minimumCacheTTL: 2678400 (31 days) for caching work better since the images don’t change often?
7 Replies
Bengal
Where are the images coming from ? So are they part of your public folder or are they stored on a network storage like S3?
PoodleOP
They are stored in R2
@Poodle can you potentially just use images in your public folder?
I made something for that, purely due to vercel transformation limits
Bengal
You might need to overwrite the default setting for cache header as Vercel does support the cache header from R2. If it is not set, it might be a very low default. So they get revalidated often. Most likely your problem here
You could set this header also with a page rule in Cloudflare