There's something weird with the entries in your HTTP cache for these
images. For example, if I fetch:
1.
http://www.parchance.fr/images/documents-activite/carte-visite/background/thumb/automobile.png.pagespeed.ce.0.png
This shows us what's in your http cache for automobile.png. It should
be identical to what I get if I fetch:
2.
http://www.parchance.fr/images/documents-activite/carte-visite/background/thumb/automobile.png?PageSpeed=off
But instead it's identical to what I get if I fetch:
3.
http://www.parchance.fr/images/documents-activite/carte-visite/background/thumb/automobile.png
The third url gives us a version of automobile.png optimized by
PageSpeed (via IPRO), and looking at it I can verify that it's
optimized: the redundant alpha channel in the original image has been
removed.
So #2 and #3 are working properly, but #1 is giving us the optimized
image (#3) instead of the original image (#1).
Additionally when I try to use wget on your site I get "403
Forbidden". It sounds like you have something running to keep out
unknown UAs? Could you paste the config for that? And anything else
custom on your site's server config? It could be confusing PageSpeed,
where PageSpeed is trying to fetch the original image but instead ends
up fetching the optimized image?
Do you have anything in your server's error log for these images?
----------------------------------------------------------------------
My notes are below, probably only interesting to me.
----------------------------------------------------------------------
I picked one of the images, a background image on a div specified in a
style attribute:
"
http://www.parchance.fr/images/documents-activite/carte-visite/background/thumb/automobile.png".
PageSpeed is turning this into
"/images/documents-activite/carte-visite/background/thumb/automobile.png.pagespeed.ce.gJ-G6u8poh.png".
* It's now site-relative instead of absolute because you have
trim_urls turned on.
* I don't know why it's cache extended instead of rewritten as an image.
When I fetch the pagespeed version in curl I see:
Cache-Control: max-age=300,private
Same when I fetch it with Chrome:
Cache-Control: max-age=300,private
When I fetch the page with ?PageSpeedFilters=+debug I see:
<div id="..." onclick=...' class="..." alt="..." title="..."
style="background:url(/images/documents-activite/carte-visite/background/thumb/automobile.png.pagespeed.ce.Qlc8LkJsS7.png)
no-repeat center center"></div>
<!--Flattening failed: Cannot rewrite
http://www.parchance.fr/images/documents-activite/carte-visite/background/thumb/automobile.png
for an unknown reason-->
While it says "flattening failed", it's also now giving a different
url, and the new url has "Cache-Control: max-age=31536000".
In general, passing in PageSpeedFilters=+debug really shouldn't change
what resource I get in response.
If I fetch the page with
?PageSpeedFilters=rewrite_images,rewrite_css,rewrite_style_attributes
then I see the url rewritten as:
http://www.parchance.fr/images/documents-activite/carte-visite/background/thumb/xautomobile.png.pagespeed.ic.m3EFfZtpXa.png
Which is fully rewritten and gets the proper "Cache-Control:
max-age=31536000" header.
When I put a copy of your page on a test server and fetch it with
?PageSpeedFilters=-rewrite_images I get
automobile.png.pagespeed.ce.gJ-G6u8poh.png (the same as your site)
served with "Cache-Control: max-age=31536000" (not the same as your
site).
We can compare five images:
1. The image served without PageSpeed (automobile.png)
2. The image served with PageSpeed on your site (ce.gJ-G6u8poh)
3. The image served with PageSpeed on your site in debug mode (ce.Qlc8LkJsS7)
4. The image served with PageSpeed on my test server (ce.gJ-G6u8poh)
5. The image served with PageSpeed IPRO on your site (automobile.png)
I'm seeing that 1 and 4 are the same, which we'd expect. 2 and 3
should also be the same as 1 and 4, but instead are identical to each
other. 5 should be smaller than the rest, being optimized, but
instead is identical to 2 and 3. 2/3/5 are smaller (6602 bytes) than
1/4 (7176 bytes). The main difference is that 1/4 has an unnecessary
alpha channel (100% opaque everywhere) while 2/3/5 does not.
On Tue, Aug 25, 2015 at 5:50 AM, 1234 <
nouveau.co...@gmail.com> wrote:
> Hello Jeff Kauffman, I'm happy to see you because you have already help me
> for my old pagespeed problems.
>
> Yes, you see right in the deskop result.
>
> So here the content of my .htaccess file (this is the only .htaccess file in
> the website and is in the document root) :
>
> Options +FollowSymLinks
> RewriteEngine On
>
>
> ExpiresActive On
> ExpiresDefault "access plus 7 days"
>
>
> ModPagespeed on
>
>
> ModPagespeedEnableFilters
> trim_urls,remove_comments,collapse_whitespace,recompress_images,sprite_images,rewrite_css,outline_css,combine_css,rewrite_javascript,outline_javascript,combine_javascript
> ModPagespeedDisableFilters defer_javascript
> SetOutputFilter DEFLATE
> AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml
> application/x-javascript text/javascript image/gif image/png image/jpeg
>
>
>
> I have no probleme for this page
goo.gl/wYEZvx or for the home page.
>
> So I don't know the source of the problem.
>
https://groups.google.com/d/msgid/mod-pagespeed-discuss/421d64c3-95bb-4877-b02d-f975de1ba49f%40googlegroups.com.