在 web-server 上压缩或不压缩 png?

compress or not png on web-server?

如果客户给我 request-header "Accept-Encoding: gzip" 请求,我是否应该为 png-files 添加 responce-header “Content-Encoding: gzip”?
据我所知,gzip 和 png 都使用 Deflate 算法。与压缩png是否有material区别?
如果我包括在内会不会更糟?

只是不要这样做。你白白浪费了CPU。