Enabling Image optimization
Difficulty level: Beginner
Objective
Fastly offers an image optimizer which can perform transformations on images that pass through Fastly servers. In this challenge, we send two requests, one for an image, at /image/png
, and one for a non-image resource, at /anything
.
Write code that makes the image request pass through the image optimizer, but does not route the non-image request through it.