Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Transform images when a client accepts image/webp.
More browsers besides Chrome have started to support webp as image format. To advertise their support, they include image/webp content type in the Accept header. This change allows this plugin to detect support for webp by checking the Accept header and keeps the old User-Agent check for old versions of Chrome. Signed-off-by: David Calavera <david.calavera@gmail.com>
- Loading branch information