Skip to content

Commit a8a4999

Browse files
thomasgauvinOxyjun
andauthored
Update workers-kv-to-serve-assets.mdx (#23030)
* Update workers-kv-to-serve-assets.mdx * Update src/content/docs/kv/examples/workers-kv-to-serve-assets.mdx * Update src/content/docs/kv/examples/workers-kv-to-serve-assets.mdx --------- Co-authored-by: Jun Lee <[email protected]>
1 parent e9e375f commit a8a4999

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/content/docs/kv/examples/workers-kv-to-serve-assets.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ description: Example of how to use Workers KV to store static assets
1010

1111
import { Render, PackageManagers, TabItem, Tabs } from "~/components";
1212

13-
By storing static assets in Workers KV, you can retrieve these assets globally with low-latency and high throughput. You can then serve these assets directly, or use them to dynamically generate responses. This can be useful when serving files and images, or when generating dynamic HTML responses from static assets such as translations.
13+
By storing static assets in Workers KV, you can retrieve these assets globally with low-latency and high throughput. You can then serve these assets directly, or use them to dynamically generate responses. This can be useful when serving files such as custom scripts, small images that fit within [KV limits](/kv/platform/limits/), or when generating dynamic HTML responses from static assets such as translations.
1414

1515
:::note[Note]
16-
With [Workers KV](/kv), you can access, edit and store assets directly from your [Worker](/workers). If you need to serve assets as part of a front-end or full-stack web application, consider using [Cloudflare Pages](/pages/) or [Workers static assets](/workers/static-assets/), which provide a purpose-built deployment experience for web applications and their assets.
16+
If you need to **host a front-end or full-stack web application**, **use [Cloudflare Workers static assets](/workers/static-assets/) or [Cloudflare Pages](/pages/)**, which provide a purpose-built deployment experience for web applications and their assets.
17+
18+
[Workers KV](/kv/) provides a more flexible API which allows you to access, edit, and store assets directly from your [Worker](/workers/) without requiring deployments. This can be helpful for serving custom assets that are not included in your deployment bundle, such as uploaded media assets or custom scripts and files generated at runtime.
1719
:::
1820

1921
## Write static assets to Workers KV using Wrangler

0 commit comments

Comments
 (0)