node.js - 我应该为 WebP 图像启用 GZIP 压缩吗?

标签 node.js express web gzip webp

压缩 WebP 图像后启用 gzip 压缩是否仍然相关?

就我而言,我使用 express 压缩中间件。

最佳答案

雅虎建议反对:

Image and PDF files should not be gzipped because they are already compressed. Trying to gzip them not only wastes CPU but can potentially increase file sizes.

https://developer.yahoo.com/performance/rules.html

这可能会有所帮助:https://webmasters.stackexchange.com/questions/8382/gzipped-images-is-it-worth

关于node.js - 我应该为 WebP 图像启用 GZIP 压缩吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46662089/

相关文章:

node.js - ExpressJS 中的 req.query 和 req.param

node.js - 为什么不能修改 Mongoose 查询返回的数据(例如 : findById)

node.js - 如何为第 3 方库将 ES6 转换为 ES5?

javascript - 请勿跟踪 Express 应用程序中的实现情况

jquery - Node.js Express jquery ajax 请求不起作用

node.js - 使用 React Router 刷新浏览器历史记录会返回来 self 的 API 的调用

html - 仅为移动设备更改 CSS?

javascript - 使用异步/等待延迟强制请求之间的时间

web - 防止大量登录请求的简单方法?

php - 限制访问网站上的图像