Add 'srcset' filtering
-
I’ve tried your plugin and it works very well with an outside varnish as a pseudo-CDN, but unfortunately all images that are added with ‘srcset’ (this fancy responsive image stuff added in WP 4.4, i think) are not being cached.
I’ve tried adding this to the plugin, just for testing:
add_action( 'wp_calculate_image_srcset', array( __CLASS__, 'handle_rewrite_hook' ) );
and it prefix the image source as expected, but also broke the srcset functionality. Maybe you can look into this?
Thanks!
PS: It would be great if you would allow filtering for the mapped domain of a Multisite, and also the ugly real addresse – some themes still have that ugly one in there for some assets.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Add 'srcset' filtering’ is closed to new replies.