HTML tag to prevent image rewrites

26 views
Skip to first unread message

Agustin Garzon

unread,
May 10, 2017, 10:48:21 AM5/10/17
to Support
Hi there, I can't seem to find the exact answer, or did I ?

Using this ATTRIBUTE on the HTML TAG would work ?
pagespeed_no_transform

Like this:
<img src="example.png" pagespeed_no_transform>

Thank you :)

Otto van der Schaaf

unread,
May 10, 2017, 3:13:03 PM5/10/17
to Agustin Garzon, Support
Adding pagespeed_no_transform on an <img> tag ought to work work.
The attribute was renamed to data-pagespeed-no-transform in later revisions of the rewriting framework, but that has not trickled through to the IIS version yet.
(see data-pagespeed-no-transform at https://modpagespeed.com/doc/filter-image-optimize)

Otto

Agustin Garzon

unread,
May 11, 2017, 7:40:43 AM5/11/17
to Otto van der Schaaf, Support
Thanks Otto !
--

Agustin.

"You only need to change your direction," said the cat, and ate it up.
Reply all
Reply to author
Forward
0 new messages