Title: Exclude a certain source from cache
Last modified: December 3, 2018

---

# Exclude a certain source from cache

 *  Resolved [lmobile](https://wordpress.org/support/users/lmobile/)
 * (@lmobile)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/exclude-a-certain-source-from-cache/)
 * Dear Emre
 * we have a issue with our live-chat function (an iframe overlay) and wpfc (we 
   use premium). as long wpfc is active we receive a few thousand messages within
   the developer console like that:
 * TypeError: p.getBoundingClientRect is not a function
    at Object.c ((index):751)
   at Object.r ((index):751) at (index):751 at Array.forEach (<anonymous>) at Object.
   ls ((index):751) at (index):751 at Function.fa (fn3qb.js:1) at Function.a.find(
   fn3qb.js:6) at a.fn.init.find (fn3qb.js:1) at a.fn.init.a.fn.find (fn3qb.js:6)
   ==> <iframe id=​”lz_chat_overlay_file_upload_frame”>​…​</iframe>​
 * How could we exclude this from cache? This line causes the problem:
 * `script data-wpfc-render="false">var Wpfcll={s:[],i:function(){Wpfcll.ss();window.
   addEventListener('load',function(){window.addEventListener("DOMSubtreeModified",
   function(e){Wpfcll.ss();Wpfcll.ls(false);},false);Wpfcll.ls(true);});window.addEventListener('
   scroll',function(){Wpfcll.ls(false);});window.addEventListener('resize',function(){
   Wpfcll.ls(false);});window.addEventListener('click',function(){Wpfcll.ls(false);});},
   c:function(e,pageload){var w=document.documentElement.clientHeight || body.clientHeight;
   var n=pageload ? 0:800;var er=e.getBoundingClientRect();var t=0;var p=e.parentNode;
   var pr=p.getBoundingClientRect();if(er.x==0 && er.y==0){for(var i=0;i < 10;i+
   +){if(p){if(pr.x==0 && pr.y==0){p=p.parentNode;pr=p.getBoundingClientRect();}
   else{t=pr.top;break;}}};}else{t=er.top;}if(w - t+n > 0){return true;}return false;},
   r:function(e,pageload){var s=this;var oc,ot;try{if(s.c(e,pageload)){oc=e.getAttribute("
   data-wpfc-original-src");ot=e.getAttribute("data-wpfc-original-srcset");if(oc
   || ot){if(oc){e.setAttribute('src',oc);}if(ot){e.setAttribute('srcset',ot);}e.
   removeAttribute("data-wpfc-original-src");e.removeAttribute("onload");if(e.tagName
   =="IFRAME"){e.onload=function(){var s=e.getAttribute("src").match(/templates\/
   youtube\.html\#(.+)/);var y="https://www.youtube.com/embed/";if(s){try{var i=
   e.contentDocument || e.contentWindow;if(i.location.href=="about:blank"){e.setAttribute('
   src',y+s[1]);}}catch(err){e.setAttribute('src',y+s[1]);}}}}}}}catch(error){console.
   log(error);console.log("==>",e);}},ss:function(){var i=Array.prototype.slice.
   call(document.getElementsByTagName("img"));var f=Array.prototype.slice.call(document.
   getElementsByTagName("iframe"));this.s=i.concat(f);},ls:function(pageload){var
   s=this;[].forEach.call(s.s,function(e,index){s.r(e,pageload);});}};document.addEventListener('
   DOMContentLoaded',function(){wpfci();});function wpfci(){Wpfcll.i();}</script
   >`
 * Thank you in advance Marc
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fexclude-a-certain-source-from-cache%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/exclude-a-certain-source-from-cache/#post-10946080)
 * Solved.

Viewing 1 replies (of 1 total)

The topic ‘Exclude a certain source from cache’ is closed to new replies.

 * ![](https://ps.w.org/wp-fastest-cache/assets/icon-256x256.png?rev=2064586)
 * [WP Fastest Cache - WordPress Cache Plugin](https://wordpress.org/plugins/wp-fastest-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-fastest-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-fastest-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-fastest-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-fastest-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-fastest-cache/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/exclude-a-certain-source-from-cache/#post-10946080)
 * Status: resolved