apache / incubator-pagespeed-ngx

Automatic PageSpeed optimization module for Nginx
http://ngxpagespeed.com/
Apache License 2.0
4.37k stars 363 forks source link

disable image rewrite filter #1712

Open ufgeorge opened 4 years ago

ufgeorge commented 4 years ago

-- pagespeed RewriteLevel CoreFilters; pagespeed DisableFilters rewrite_images;

I can see image rewrite value down to 0 after switch to disable.

A little issue is Configuration in admin show below filter which are relate to rewrite filter are still on: gp Convert Gif to Png jp Convert Jpeg to Progressive jw Convert Jpeg To Webp mc Convert Meta Tags pj Convert Png to Jpeg ws When converting images to WebP, prefer lossless conversions ii Inline Images js Jpeg Subsampling rj Recompress Jpeg rp Recompress Png rw Recompress Webp ri Resize Images cp Strip Image Color Profiles md Strip Image Meta Data

Lofesa commented 4 years ago

You have turned out the rewrite_images for normal request, but these filters still can be used by url parameter, for example. Try to forbid all uses of these filter: pagespeed ForbidFilters rewrite_images; or maybe you need: pagespeed RewriteLevel PassThrough; and then enable the filters you need.