Icon

Dynamically constructing HTML responses at the edge based on request headers, such as Accept-Language, allows for personalized and efficient content delivery. This use case showcases how EdgeKV can be used to store and retrieve data at the edge, enhancing performance and reducing latency.

Loading...

https://www.edgecompute.live/edgekv/hworld/hworld.html

Copied to clipboard!

The Hello World example demonstrates how you can use EdgeWorkers and EdgeKV to implement a simple Dynamic Content Assembly use case whereby the HTML response is dynamically constructed on the edge based on the content of the Accept-Language header in the client request. It also shows how you could use the getText() helper method.

Icon landscape
Core Concepts

Helps developers understand the fundamental processes needed for edge computing.

Icon landscape
Distributed Data

Pushing data to the edge speeds up websites by avoiding central bottlenecks.

Icon landscape
Reduce Latency

Speed up response times by moving work closer to users.

Related Examples

View More
Icon Card background
API Orchestration

Demonstrates how EdgeWorkers can be used to merge multiple internal APIs into a single API response from a user experience perspective.

View Case
Icon Card background
Cachekey Device Type

This example includes the device type (tablet or mobile) from a PMUSER variable in the computed cache key for an Edge Server.

View Case
Icon Card background
Device Routing

Implements modification of the forward origin path of the URL to return device-specific content.

View Case