I'm using mod_pagespeed and I'm searching for a way to rewrite all images into data:image format. Currently only small images are being included. I can't find anything in the documentation.

有帮助吗?

解决方案

You can use the ModPageSpeedImageInlineMaxBytes option to configure the size threshold used by the inline_images filter. See the image optimization documentation for more details.

However, you should consider carefully if you want to actually inline all images? While you'll save making another request for the inlined images, you'll also miss out on benefits such as cache extension, and pay a penalty if you reference an image multiple times on a page.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top