Skip to content

Releases: tkoenig89/express-static-gzip

Stable

04 Feb 14:34
Compare
Choose a tag to compare

Just a stable release with all the latest (and older) bugfixes.

Accept-Encoding identity fix

24 Jun 08:52
Compare
Choose a tag to compare

Merged PR with fix for correct identity handling in the accept-encoding header.

Options overhaul

10 Aug 13:53
Compare
Choose a tag to compare
  • 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 new serverStatic 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.

v1.1.1

30 Jul 19:03
Compare
Choose a tag to compare

Minor update to the readme

v1.1.0

30 Jul 18:12
Compare
Choose a tag to compare

Added option orderPreference to overwrite the order of encodings sent from the client.

v1.0.0

28 Jul 21:26
Compare
Choose a tag to compare

A lot of effort was put into adding unit and e2e tests.

Some smaller bugs have been fixed due to the test results.

indexFromEmptyFile is now deprecated and index should be used instead.