<div dir="ltr">Hi Diego,<div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 10, 2014 at 1:24 AM, Diego Rabatone <span dir="ltr"><<a href="mailto:diraol@diraol.eng.br" target="_blank">diraol@diraol.eng.br</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi friends,<br><br></div>I am new at the caching World, and I have looked for some solution to cross-domain caching, but I have not found any solution.<br>

<br></div>I have a blog that embed some dataviz webservices, and I want to cache this content that I insert using Iframes.<br>
</div>The blog is: <a href="http://blog.estadaodados.com" target="_blank">http://blog.estadaodados.com</a> there is any way of doing this?<br></div></div></blockquote><div><br></div><div>Absolutely. It is a pretty good way to make sure that the content you embed performs well in addition to lessening the load on the server you are embedding content from.</div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">At this moment I have a Varnish + nginx + php-fpm setup on a dev server (not the link that I posted), and it seems to be working ok, but there is no caching of the Iframes.<br>

</div></blockquote><div><br></div><div>No. This is expected. In order to cache those iframes you would need to set up the server you embedding content from as a backend on your varnish and preferably give it a new hostname. Then, in the vcl_recv you replace req.http.host to the original hostname and set the backend. Then regular caching rules will be applied. In Varnish 4.0 you could set the cache time to one hour and you could add a keep of maybe a couple of hours. That will enable IMS so you wouldn't have to refetch the content, only revalidate it.</div>

<div><br></div><div><br></div><div>As James said, should make sure you have the authors permission, but if you do it through Varnish at least there won't be much of a impact on their server when you do this.</div><div>

<br></div><div>Cheers,</div><div><br></div><div>Per.</div></div><div><br></div>-- <br><div dir="ltr"><div style="font-size:12.727272033691406px;margin:5px 15px 0px 0px;padding-bottom:5px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">

<table border="0" cellpadding="0" cellspacing="0" style="text-align:start;font-size:12px;line-height:1.5em;font-family:'Helvetica Neue',Arial,sans-serif;color:rgb(102,102,102);width:550px;border-top-width:1px;border-top-style:solid;border-top-color:rgb(238,238,238);border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(238,238,238);margin-top:20px;padding-top:5px;padding-bottom:5px">

<tbody><tr><td width="100" style="font-family:arial,sans-serif;margin:0px"><a href="http://www.varnish-software.com/" style="color:rgb(17,85,204)" target="_blank"><img src="http://www.varnish-software.com/static/media/logo-email.png" style="float:left;margin-left:10px"></a></td>

<td style="font-family:arial,sans-serif;margin:0px"><b style="font-size:14px;color:rgb(34,34,34)">Per Buer</b><br>CTO | Varnish Software<br>Phone: +47 958 39 117 | Skype: per.buer<br><span style="font-weight:bold">We Make Websites Fly!<br>

<br></span><span style="font-family:'Helvetica Neue',Arial,sans-serif;font-size:14px;font-weight:bold">Winner of the Red Herring Top 100 Global Award 2013<br></span><p style="margin:0px;line-height:normal;font-family:Helvetica">

<img src="https://www.varnish-software.com/sites/default/files/redherring_2013_winner_sml.jpg"></p><span style="font-weight:bold"><br></span></td></tr></tbody></table><div></div></div><div style="font-size:12.727272033691406px;margin:15px 0px;clear:both;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">

</div></div>
</div></div>