Made a couple of changes that made it work for me on both Windows and Linux.
I also replaced the if-elseif statements with a switch to check the extension in the middleware and removed the question-mark at the gzip error logger since that made it output at all times.
Made a couple of changes that made it work for me on both Windows and Linux.
I also replaced the if-elseif statements with a switch to check the extension in the middleware and removed the question-mark at the gzip error logger since that made it output at all times.