apache / incubator-pagespeed-mod

Apache module for rewriting web pages to reduce latency and bandwidth.
http://modpagespeed.com
Apache License 2.0
696 stars 158 forks source link

.webp images #1787

Open Pionell opened 6 years ago

Pionell commented 6 years ago

Hello, I have an issue where the pagespeed module automatically converts part of the images to webp format, even though I disable the webp filters. ModPagespeedDisableFilters convert_jpeg_to_webp,convert_to_webp_lossless,convert_to_webp_animated,recompress_webp,convert_png_to_webp however the png's are still converted to WEBP. A big part of the website visitors use iphones and webp images seem to not load on iphones.

Lofesa commented 6 years ago

Try to add ModPagespeedForbidAllDisabledFilters true

jmarantz commented 6 years ago

Based on your config snippet I think you've done all the right things with just "DisableFilters". I think something else might be going wrong -- can you provide a more complete view of your configuration, and the hostnames that server your images and html?

jmarantz commented 6 years ago

Also mod_pagespeed does not send webp images to iphones. What version are you using? And do you have caching downstream of pagespeed?

Pionell commented 6 years ago

what do you mean caching downstream? I can't provide a hostname, sorry..

jmarantz commented 6 years ago

A downstream cache is a proxy-cache (e.g. Varnish or a CDN) that sits in between your mod_pagespeed-enabled server and the client (browser).

On Sun, Jul 29, 2018 at 11:28 AM Pionell notifications@github.com wrote:

what do you mean caching downstream? I can't provide a hostname, sorry..

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/apache/incubator-pagespeed-mod/issues/1787#issuecomment-408685317, or mute the thread https://github.com/notifications/unsubscribe-auth/AB2kPQF259_cZwcI8q6k_86JVVYG0p6Vks5uLdSfgaJpZM4VcUMD .

Pionell commented 6 years ago

the client does use varnish

jmarantz commented 6 years ago

OK -- please be sure to read https://www.modpagespeed.com/doc/downstream-caching to understand the tradeoffs using downstream caches while transcoding images in a user-agent-sensitive way.

On Mon, Jul 30, 2018 at 4:32 PM Pionell notifications@github.com wrote:

the client does use varnish

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/apache/incubator-pagespeed-mod/issues/1787#issuecomment-409000263, or mute the thread https://github.com/notifications/unsubscribe-auth/AB2kPdyWGInRw_gI3tlB1UYbrroNWxBcks5uL21ogaJpZM4VcUMD .