You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.
Yes gzip should be done after minification. However express-minify and compression rewrite function to "hook" the output of the response thus the order is reversed.
Let's say, a hook is as simple as:
var_send=res.send();res.send=function(data){// our own logic here}
Then let's imagine multiple hooks (middleware A appears before middleware B):
in your readme, you've put
app.use(compression()); app.use(minify())
shouldn't this be other way around ?
The text was updated successfully, but these errors were encountered: