Releases: tkoenig89/express-static-gzip
Releases · tkoenig89/express-static-gzip
Stable
Accept-Encoding identity fix
Merged PR with fix for correct identity handling in the accept-encoding header.
Options overhaul
-
Even so this is mayor release, this should be fully backwards compatible and should not have any breaking change to v1.1.3.
-
Moves all options for
serverStatic
in it's own section, to prevent collisions when setting up your static fileserving middleware. -
For backwards compatibility all root options that apply to
serveStatic
will be copied to the newserverStatic
section, except if you have set values there already. Here is a small example of this behaviour:{ enableBrotli: true, // not a serverStatic option, will not be moved maxAge: 123, // not copied, as already present. index: 'main.js', // copied to serveStatic section serveStatic: { maxAge: 234, // will be kept cacheControl: false // will be kept as well } }
In the above scenario serveStatic will use
cacheControl
: false,index
: 'main.js',maxAge
:234.