문제

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