Icon

Adding content to an HTML response stream at the edge allows for dynamic enhancements to web pages without requiring changes at the origin server. This improves flexibility and performance, ensuring users receive the most relevant and up-to-date content.

Loading...

https://www.edgecompute.live/edgeworkers/stream/responseManipulationDemo.html

Copied to clipboard!

Demonstrates how an EdgeWorker can modify an HTML response stream by adding content to the response. The example adds a script to the page just before the closing head tag.

Icon landscape
Dynamic Flexibilty

Modify in-flight content on its way between client and origin server and back to clients.

Icon landscape
Ease Development

Enable developers to modify application behavior without touching origin server logic.

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