Serve small binary assets direct from edge
Serve binary objects, such as images, directly from edge configuration.
Use this solution in your VCL service (click RUN below to test this solution or clone it to make changes):
Use this solution in your Compute@Edge service:
[dependencies]fastly = "0.7.0"
// The flag of the Netherlandslet image: &[u8] = include_bytes!("nl.gif");Ok(Response::from_body(image).with_content_type(mime::IMAGE_GIF))