Skip to content

Commit 59b9f7c

Browse files
Add note about Image transformation compat with Cloudflare Pages
1 parent 7f5d068 commit 59b9f7c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/content/docs/images/transform-images/transform-via-workers.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,3 +278,13 @@ When testing image resizing, please deploy the script first. Resizing will not b
278278
Resized images are always cached. They are cached as additional variants under a cache entry for the URL of the full-size source image in the `fetch` subrequest. Do not worry about using many different Workers or many external URLs — they do not influence caching of resized images, and you do not need to do anything for resized images to be cached correctly.
279279

280280
If you use the `cacheKey` fetch option to unify caches of multiple different source URLs, you must not add any resizing options to the `cacheKey`, as this will fragment the cache and hurt caching performance. The `cacheKey` option is meant for the full-size source image URL only, not for its resized variants.
281+
282+
## Pages
283+
284+
:::caution[Warning]
285+
286+
287+
Image transformation does not work on Cloudflare Pages.
288+
289+
290+
:::

0 commit comments

Comments
 (0)