Using mod-pagespeed in debug mod seems to break ImagePreserveURLs (ipu)

388 views
Skip to first unread message

Eric Longuemare

unread,
Nov 3, 2015, 7:08:20 AM11/3/15
to mod-pagespeed-discuss
Hello,

While doing some test with mod_pagespeed in debug mod (PageSpeedFilters=+debug), I found that ImagePreserveURLs (ipu) is on false thus ModPagespeedImagePreserveURLs is set to on in pagespeed apache conf file.

Then image file names in html files are extended with hash number.

In standard mode (production) files names are the original ones.

Is this the expected thing ?

Greatings,

Eric

 --
X-Mod-Pagespeed : 1.9.32.10-7443, I'm back to last stable version and "low ressources server".

debug logs in html file :


mod_pagespeed on Filters: cw Collapse Whitespace jc Combine Javascript gp Convert Gif to Png jp Convert Jpeg to Progressive jw Convert Jpeg To Webp pj Convert Png to Jpeg db Debug dj Defer Javascript hw Flushes html io In-place optimize for browser idp Insert DNS Prefetch js Jpeg Subsampling pr Prioritize Critical Css rj Recompress Jpeg rp Recompress Png rw Recompress Webp rc Remove Comments cf Rewrite Css jm Rewrite External Javascript jj Rewrite Inline Javascript cp Strip Image Color Profiles md Strip Image Meta Data Options: CssInlineMaxBytes (ci) 10240 EnableCachePurge (euci) True EnableRewriting (e) 1 FileCacheCleanIntervalMs (afcci) 3600000 FileCacheSizeKb (afc) 4096000 ImagePreserveURLs (ipu) False ImplicitCacheTtlMs (ict) 15549367000 LoadFromFileCacheTtlMs (lfct) 15549367000 LRUCacheByteLimit (alcb) 16384 LRUCacheKbPerProcess (alcp) 1024 RewriteDeadlinePerFlushMs (rdm) 20 RewriteLevel (l) Optimize For Bandwidth RunExperiment (fur) False StatisticsLogging (asle) True SupportNoScriptEnabled (snse) False

Jeff Kaufman

unread,
Nov 3, 2015, 11:29:25 AM11/3/15
to mod-pagespeed-discuss
To clarify, are you saying:

1. You set "ImagePreserveUrls on" in your config
2. If you load your page normally your image urls aren't modified.
3. If you load your page with ?PageSpeedFilters=+debug then the image
urls are modified?
> --
> You received this message because you are subscribed to the Google Groups
> "mod-pagespeed-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mod-pagespeed-di...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mod-pagespeed-discuss/0380ad11-1711-48c5-83dc-7493cb634fae%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Eric Longuemare

unread,
Nov 3, 2015, 12:32:59 PM11/3/15
to mod-pagespeed-discuss
Hello,
>1. You set "ImagePreserveUrls on" in your config
>2. If you load your page normally your image urls aren't modified.
>3. If you load your page with ?PageSpeedFilters=+debug then the image
>urls are modified?

Yes, that's it.

 

Joshua Marantz

unread,
Nov 3, 2015, 1:29:37 PM11/3/15
to mod-pagespeed-discuss
It would be good to see the actual pagespeed.conf settings for a repro.

-Josh



 

--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-di...@googlegroups.com.

Eric Longuemare

unread,
Nov 3, 2015, 1:45:10 PM11/3/15
to mod-pagespeed-discuss
Should I send you a mail with it ?

Michael N.

unread,
Jan 26, 2017, 5:07:14 AM1/26/17
to mod-pagespeed-discuss
I'm having the same issue.

I set debug in the URL with <URL>?PageSpeedFilters=+debug

pagespeed conf is like:

#
# Pagespeed Settings
#

pagespeed
FileCachePath {{ nginx_cache_path }}/ngx_pagespeed_cache;
pagespeed
ImageMaxRewritesAtOnce -1;

pagespeed
EnableFilters convert_jpeg_to_webp,convert_to_webp_lossless,recompress_jpeg;
pagespeed
EnableFilters collapse_whitespace,combine_css,convert_jpeg_to_progressive;
pagespeed
EnableFilters rewrite_images,resize_rendered_image_dimensions,extend_cache;

pagespeed
DisableFilters inline_images,inline_preview_images;
pagespeed
DisableFilters lazyload_images,extend_cache_images,sprite_images;

pagespeed
ImagePreserveURLs on;

pagespeed
InPlaceResourceOptimization on;
pagespeed
RewriteRandomDropPercentage 0;
pagespeed
PreserveUrlRelativity on;
pagespeed
ImageResolutionLimitBytes 128000000;
pagespeed
RewriteDeadlinePerFlushMs 25;

pagespeed
CriticalImagesBeaconEnabled false;

pagespeed
StatisticsPath /ngx_pagespeed_statistics;
pagespeed
MessagesPath /ngx_pagespeed_message;
pagespeed
ConsolePath /pagespeed_console;
pagespeed
AdminPath /pagespeed_admin;

pagespeed
FileCacheSizeKb 1024000;
pagespeed
FileCacheCleanIntervalMs 3600000;
pagespeed
FileCacheInodeLimit 500000;

pagespeed
LRUCacheKbPerProcess 8192;
pagespeed
LRUCacheByteLimit 16384;

pagespeed
MemcachedServers "mc1:11211,mc2:11211";

Otto van der Schaaf

unread,
Jan 26, 2017, 6:35:31 AM1/26/17
to mod-pagespeed-discuss
I think this question is explained over at https://groups.google.com/d/msgid/mod-pagespeed-discuss/a6708ff5-1ce6-47b3-8313-bff425cafe5f%40googlegroups.com?utm_medium=email&utm_source=footer

TLDR; 
image resizing and inlining can't be performed without altering the image urls, and options enabling those will override image url preservation options.


Otto
Reply all
Reply to author
Forward
0 new messages