WP Retina 2x WP Engine HTML caching
-
Hello,
Firstly, great plugin, 5 stars ??
I am using WP Engine (per your recommendation, actually) and it seems that their caching prevents all but the Retina.js method.
I’ve just chatted with WPE support and they were hoping you, the plugin author, might know a tried and true way for using the Server side methods with their caching.
Thanks in advance,
Owen
-
Well, bummer… Here’s where I’m at with this and WPE.
retina.js works on it’s own, but if I enable WPE’s CDN (cname masked to cdn.domain.com) it stops working even when I put on debug mode.
@tigroumeow – I noticed totorotimes is on WPE and has the same issue (CDN images never get served 2x).
Is there _any_ solution for this?
Seems like the plugin should have the ability to manually enter a CDN domain, or better automatically recognize it.
I tried picturefill on WP Engine it it doesn’t do anything whether debug mode is on or not. I’m assuming since picturefill is remotely hosted debug mode doesn’t actually do anything for that mode, but I haven’t actually looked into it.
Jon, PictureFill works with WPE, there is no problem. Can you try to use the debug mode, check your PHP debug files and the plugin debug file? You might see something in there…
a piece of my log using the picturefill poly:
2014-06-26 19:37:31: 18 img tags found. 2014-06-26 19:37:31: - The retina file '/nas/wp/www/cluster-2197/zpsgi/image/gif;base64,R0lGODdhAQABAPAAAP/wAAACwAAAAAAQABAEACAkQBADs=@2x.' cannot be found. 2014-06-26 19:37:31: Replaced img tag '<img width="305" height="228" src="https://smartgridinsights.com/wp-content/uploads/2014/06/tile-siemens-305x228.png" class="attachment-background wp-post-image" alt="If therea€?s one thing todaya€?s modern IT systems can provide, it is an avalanche of disparate data that can both guide, confuse, or worst case, drown the utility enterprise and its stakeholders. The holy grail..." title="Different Industries, Common Opportunities, Presented by Siemens"/>' by '<img width="305" height="228" class="attachment-background wp-post-image" alt="If therea€?s one thing todaya€?s modern IT systems can provide, it is an avalanche of disparate data that can both guide, confuse, or worst case, drown the utility enterprise and its stakeholders. The holy grail..." title="Different Industries, Common Opportunities, Presented by Siemens" srcset="https://smartgridinsights.com/wp-content/uploads/2014/06/tile-siemens-305x228.png, https://smartgridinsights.com/wp-content/uploads/2014/06/[email protected] 2x"/>' 2014-06-26 19:37:31: - The retina file '/nas/wp/www/cluster-2197/zpsgi/image/gif;base64,R0lGODdhAQABAPAAAP/wAAACwAAAAAAQABAEACAkQBADs=@2x.' cannot be found. 2014-06-26 19:37:31: Replaced img tag '<img width="305" height="228" src="https://smartgridinsights.com/wp-content/uploads/2014/06/tile1-305x228.png" class="attachment-background wp-post-image" alt="The smart home or home automation market is heating up across the globe. In fact, on a per household basis, the U.K. and Canada are expected to spend more than the U.S. on smart home systems in 2014. In this brief report, we analyze the connected home market in the U.K, Canada, and U.S." title="U.K. and Canada Smart Home Market Brief"/>' by '<img width="305" height="228" class="attachment-background wp-post-image" alt="The smart home or home automation market is heating up across the globe. In fact, on a per household basis, the U.K. and Canada are expected to spend more than the U.S. on smart home systems in 2014. In this brief report, we analyze the connected home market in the U.K, Canada, and U.S." title="U.K. and Canada Smart Home Market Brief" srcset="https://smartgridinsights.com/wp-content/uploads/2014/06/tile1-305x228.png, https://smartgridinsights.com/wp-content/uploads/2014/06/[email protected] 2x"/>' 2014-06-26 19:37:31: - The retina file '/nas/wp/www/cluster-2197/zpsgi/image/gif;base64,R0lGODdhAQABAPAAAP/wAAACwAAAAAAQABAEACAkQBADs=@2x.' cannot be found. 2014-06-26 19:37:31: Replaced img tag '<img width="305" height="228" src="https://smartgridinsights.com/wp-content/uploads/2014/06/tile-305x228.png" class="attachment-background wp-post-image" alt="" title="U.S. Green Pricing, Net Metering, and Distributed Generation Trends"/>' by '<img width="305" height="228" class="attachment-background wp-post-image" alt="" title="U.S. Green Pricing, Net Metering, and Distributed Generation Trends" srcset="https://smartgridinsights.com/wp-content/uploads/2014/06/tile-305x228.png, https://smartgridinsights.com/wp-content/uploads/2014/06/[email protected] 2x"/>' 2014-06-26 19:37:31: - The retina file '/nas/wp/www/cluster-2197/zpsgi/image/gif;base64,R0lGODdhAQABAPAAAP/wAAACwAAAAAAQABAEACAkQBADs=@2x.' cannot be found. 2014-06-26 19:37:31: Replaced img tag '<img width="305" height="228" src="https://smartgridinsights.com/wp-content/uploads/2014/05/tile3-305x228.png" class="attachment-background wp-post-image" alt="" title="Internet of Things (IoT) - Smart Home Nexus"/>' by '<img width="305" height="228" class="attachment-background wp-post-image" alt="" title="Internet of Things (IoT) - Smart Home Nexus" srcset="https://smartgridinsights.com/wp-content/uploads/2014/05/tile3-305x228.png, https://smartgridinsights.com/wp-content/uploads/2014/05/[email protected] 2x"/>' 2014-06-26 19:37:31: - The retina file '/nas/wp/www/cluster-2197/zpsgi/image/gif;base64,R0lGODdhAQABAPAAAP/wAAACwAAAAAAQABAEACAkQBADs=@2x.' cannot be found. 2014-06-26 19:37:31: Replaced img tag '<img width="305" height="228" src="https://smartgridinsights.com/wp-content/uploads/2014/05/tile2-305x228.png" class="attachment-background wp-post-image" alt="The Internet of Things (IoT)a€”or a€?Internet of Everythinga€?a€”is a term describing the emerging global ecosystem of Internet Protocol (IP)-based intelligent sensors and devices communicating electronically through wired and wireless..." title="The Internet of Things and Smart Energy Networks"/>' by '<img width="305" height="228" class="attachment-background wp-post-image" alt="The Internet of Things (IoT)a€”or a€?Internet of Everythinga€?a€”is a term describing the emerging global ecosystem of Internet Protocol (IP)-based intelligent sensors and devices communicating electronically through wired and wireless..." title="The Internet of Things and Smart Energy Networks" srcset="https://smartgridinsights.com/wp-content/uploads/2014/05/tile2-305x228.png, https://smartgridinsights.com/wp-content/uploads/2014/05/[email protected] 2x"/>' 2014-06-26 19:37:31: - The retina file '/nas/wp/www/cluster-2197/zpsgi/image/gif;base64,R0lGODdhAQABAPAAAP/wAAACwAAAAAAQABAEACAkQBADs=@2x.' cannot be found. 2014-06-26 19:37:31: Replaced img tag '<img width="305" height="228" src="https://smartgridinsights.com/wp-content/uploads/2014/05/tile1-305x228.png" class="attachment-background wp-post-image" alt="" title="U.S. Consumer Energy Trends"/>' by '<img width="305" height="228" class="attachment-background wp-post-image" alt="" title="U.S. Consumer Energy Trends" srcset="https://smartgridinsights.com/wp-content/uploads/2014/05/tile1-305x228.png, https://smartgridinsights.com/wp-content/uploads/2014/05/[email protected] 2x"/>' 2014-06-26 19:37:31: - The retina file '/nas/wp/www/cluster-2197/zpsgi/image/gif;base64,R0lGODdhAQABAPAAAP/wAAACwAAAAAAQABAEACAkQBADs=@2x.' cannot be found. 2014-06-26 19:37:31: Replaced img tag '<img width="305" height="228" src="https://smartgridinsights.com/wp-content/uploads/2014/05/tile-md-305x228.png" class="attachment-background wp-post-image" alt="" title="Global Building Energy Management Systems Market Value, 2013-2021"/>' by '<img width="305" height="228" class="attachment-background wp-post-image" alt="" title="Global Building Energy Management Systems Market Value, 2013-2021" srcset="https://smartgridinsights.com/wp-content/uploads/2014/05/tile-md-305x228.png, https://smartgridinsights.com/wp-content/uploads/2014/05/[email protected] 2x"/>' 2014-06-26 19:37:31: - The retina file '/nas/wp/www/cluster-2197/zpsgi/image/gif;base64,R0lGODdhAQABAPAAAP/wAAACwAAAAAAQABAEACAkQBADs=@2x.' cannot be found. 2014-06-26 19:37:31: Replaced img tag '<img width="305" height="228" src="https://smartgridinsights.com/wp-content/uploads/2014/05/tile-305x228.png" class="attachment-background wp-post-image" alt="" title="Electric Vehicles and Charging Systems in Asia, 2013 - 2021"/>' by '<img width="305" height="228" class="attachment-background wp-post-image" alt="" title="Electric Vehicles and Charging Systems in Asia, 2013 - 2021" srcset="https://smartgridinsights.com/wp-content/uploads/2014/05/tile-305x228.png, https://smartgridinsights.com/wp-content/uploads/2014/05/[email protected] 2x"/>' 2014-06-26 19:37:31: - The retina file '/nas/wp/www/cluster-2197/zpsgi/image/gif;base64,R0lGODdhAQABAPAAAP/wAAACwAAAAAAQABAEACAkQBADs=@2x.' cannot be found. 2014-06-26 19:37:31: Replaced img tag '<img width="305" height="228" src="https://smartgridinsights.com/wp-content/uploads/2014/05/cover1-305x228.png" class="attachment-background wp-post-image" alt="In the summary of findings playback based on the Ventyx, an ABB company commissioned survey, U.S. Severe Weather Electricity Outages, Jon Arnold, Zpryme advisor walks through the insights and takeaways that were highlighted..." title="U.S. Severe Weather Electricity Outage Survey, Summary of Findings"/>' by '<img width="305" height="228" class="attachment-background wp-post-image" alt="In the summary of findings playback based on the Ventyx, an ABB company commissioned survey, U.S. Severe Weather Electricity Outages, Jon Arnold, Zpryme advisor walks through the insights and takeaways that were highlighted..." title="U.S. Severe Weather Electricity Outage Survey, Summary of Findings" srcset="https://smartgridinsights.com/wp-content/uploads/2014/05/cover1-305x228.png, https://smartgridinsights.com/wp-content/uploads/2014/05/[email protected] 2x"/>' 2014-06-26 19:37:31: 9 img tags were replaced out of 18.
[Moderator Note: Please post log files between backticks or use the code button.]
Jordy,
With debug on I get this:
https://cloudup.com/cJBJm2u_4GqSo, the log says the img tag is being replaced, but Chrome inspector is saying it’s not…
I tried this in Safari and Safari’s inspect shows the exact same thing as Chrome (ie. no srcset or @2x)
Safari: https://cloudup.com/c7twGb3Kv7q
Neither console log shows anything I think would matter: https://cloudup.com/cNCWVvXnEyb
I’m kind of stumped as to why it wouldn’t be working. Any ideas?
Also, the CDN is currently disabled. Just want to confirm picturefill should work with WPE’s cdn stuff if the cdn url is cname’d right?
THanks again Jordy.
@tigroumeow – Just wanted to update you
I finally found the cause of my problems (sort of) and a fix.
After a lot of troubleshooting on local I went through disabling each plugin one by one. When I deactivated WordPress SEO, WP Retina 2X started working again on local.
Here’s the bizarre thing… I immediately reactivated WordPress SEO and WP Retina 2X continued to work on local.
Puzzled, I went to my live server. First I confirmed WPR2X still wasn’t working (the log said it was, but I was NOT seeing 2x images). I disabled WP SEO, immediately reactivated it, and now WPR2X is working and continues to work.
finally working on my end. i am not sure if related to wp seo plugin, but i also had the bj lazyload plugin enabled- which does not play nicely with hdpi images + cdn. working now using picturefill.
PictureFill is the way to go! ??
- The topic ‘WP Retina 2x WP Engine HTML caching’ is closed to new replies.