compression gzip not working (expressjs - compression library)
See original GitHub issueI use from compression library and still not working… this is my config :
const app = express();
app.use(compression());
app.use("/public", express.static(path.join(path.resolve(__dirname, '../../public'))));
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
compression gzip not working (expressjs - compression library)
according to this link By default, this module does not compress responses that contain already compressed assets, like JPEG images.
Read more >Express compression middleware
The following compression codings are supported: deflate; gzip. Install. This is a Node.js module available through the npm registry. Installation is done using ......
Read more >Gzip compression with Node.js - Medium
Compression in Node.js and Express.js decreases the amount of downloadable data from a website or app. By using this compression, we can improve...
Read more >How to do compression with Gzip in Node.js ? - GeeksforGeeks
Open the browser and go to the URL http://localhost:8080/, Without compression, the response returned by the server will weigh around 16 kB, as ......
Read more >gZip compression with Node Express.js server explained ...
gZip compression with Node Express.js server explained. Enable Text Compression.In this video we will ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @alirezavalizade I’m not sure I understand.