为什么 mod_pagespeed 压缩使用渲染的图像<h:graphicImage>
而不是使用<img>
.
例如:不被压缩:
<img src="/resources/img/logo.png" alt="Logo" height="50" width="230" />
这确实被压缩了:
<h:graphicImage library="img" name="logo.png" alt="Logo" height="50" width="230" />
为什么 mod_pagespeed 压缩使用渲染的图像<h:graphicImage>
而不是使用<img>
.
例如:不被压缩:
<img src="/resources/img/logo.png" alt="Logo" height="50" width="230" />
这确实被压缩了:
<h:graphicImage library="img" name="logo.png" alt="Logo" height="50" width="230" />
mod_pagespeed 只会压缩可缓存的图像:
https://developers.google.com/speed/pagespeed/module/faq#not-rewriting