Quantcast
Channel: How do I play nice with Node.js Express compress middleware? - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Michelle Tilley for How do I play nice with Node.js Express...

Have you tried putting app.use(trimmer()); below app.use(express.compress());? The way it's currently written, trimmer will be called after the response is compressed; switching the order ensures that...

View Article



How do I play nice with Node.js Express compress middleware?

I want to use some middleware to trim all whitespace between HTML tags and collapse all other whitespace to a single space. This is to aid with CSS because white-space-collapse: discard; isn't widely...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>