[1]
void ImageRewriteFilter::ComputePreserveUrls(
const RewriteOptions* options, ResourceSlot* slot) {
// Note that in RewriteOptions::Merge we turn off image_preserve_urls
// when merging into a configuration that has explicitly
// enabled cache_extend_images.
//
// Consider a hosting provider that turns on "optimize for
// bandwidth" mode, and then a site enables resize_images
// explicitly. That should override the image-url-preservation
// default that was set at root. Note that explicitly turning on
// RecompressImages doesn't mean we'll want to override
// image_preserve_urls rewrite URLs here, since we can still get
// the benefit of recompression via IPRO. But we make an
// exception for inlining and image-resizing directives since
// those can only be done via url-rewriting.
if (options->image_preserve_urls() &&
!options->Enabled(RewriteOptions::kResizeImages) &&
!options->Enabled(RewriteOptions::kResizeToRenderedImageDimensions) &&
!options->Enabled(RewriteOptions::kInlineImages)) {
slot->set_preserve_urls(true);
}
}--
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/a6708ff5-1ce6-47b3-8313-bff425cafe5f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Enabling image_preserve_urls will forbid the use of the following filters:inline_preview_images,lazyload_images,extend_cache_images,inline_images, andsprite_images.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.
Michael
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsubscri...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/a6708ff5-1ce6-47b3-8313-bff425cafe5f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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-discuss+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/93ecf12f-13ac-41ec-a0cd-9dba9a4bb12b%40googlegroups.com.