Title: Add &#039;srcset&#039; filtering
Last modified: August 31, 2016

---

# Add 'srcset' filtering

 *  Resolved [jangrewe](https://wordpress.org/support/users/censor/)
 * (@censor)
 * [10 years ago](https://wordpress.org/support/topic/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.
 * [https://wordpress.org/plugins/cdn-enabler/](https://wordpress.org/plugins/cdn-enabler/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [KeyCDN](https://wordpress.org/support/users/keycdn/)
 * (@keycdn)
 * [10 years ago](https://wordpress.org/support/topic/add-srcset-filtering/#post-7345866)
 * The CDN Enabler does properly rewrite the srcset assets. Is it possible that 
   this is failing due to another reason? I recommend you to disable other plugins
   to isolate the problem.

Viewing 1 replies (of 1 total)

The topic ‘Add 'srcset' filtering’ is closed to new replies.

 * ![](https://ps.w.org/cdn-enabler/assets/icon-256x256.png?rev=2472538)
 * [CDN Enabler](https://wordpress.org/plugins/cdn-enabler/)
 * [Support Threads](https://wordpress.org/support/plugin/cdn-enabler/)
 * [Active Topics](https://wordpress.org/support/plugin/cdn-enabler/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cdn-enabler/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cdn-enabler/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [KeyCDN](https://wordpress.org/support/users/keycdn/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/add-srcset-filtering/#post-7345866)
 * Status: resolved