Releases: garthenweb/webp-middleware
Releases · garthenweb/webp-middleware
v0.4.0
v0.3.2
- Fixes issue where the webp file is not sent to the client when
req.headers.accept
is a string (#2) @AubreyHewes
Bugfix
Fixes a bug that throws an error when no accept header was send by the client.
Vary Header
In this release the Vary: Accept
http header is added to allow caching proxies to distinguish between different files that are send.
Updating dependencies
This release is a small maintenance update that updates dependencies and cleans up some lines of code.
- MD5 is removed in favor of the crypto module
- webp-bin is replaced by the better maintained cwebp-bin module
- mkdirp and mime are updated to their most recent versions
Further the default value for the cache directory (options.cacheDir
) is changed from __dirname + '/../../webp-cache'
to path.join(process.cwd(), 'webp-cache')
.
Fixes for express v4
#1: Fix res.sendfile method to not throw a deprecation warning on express v4 by @MJefferson.