Closed mrkurt closed 5 years ago
We can make a middleware that automatically encodes images as webp for supported clients.
This would apply to requests with image/webp in the accept header and image/jpeg or image/png in the response type from origin.
image/webp
image/jpeg
image/png
We can make a middleware that automatically encodes images as webp for supported clients.
This would apply to requests with
image/webp
in the accept header andimage/jpeg
orimage/png
in the response type from origin.