Forum Moderators: phranque
CDN recommendations
.msgOn, .msgOff, (etc) {
background-image:url('https://example.com/sprite.png')
}
.msgOn { background-position: 0 0; width: 22px; height: 20px }
.msgOff { background-position: 0 -20; width: 22px; height: 20px }
(etc)
<img data-cdn-src="example.jpg" src="https://assets.swarmcdn.com/images/1x1.gif"> Does anyone know an affordable CDN that has a better implementation of HTML caching than CloudFlare? HTML caching can have a significant effect on page load times around the world. But as I wrote above, CloudFlare doesn't crawl HTML pages but instead serves one vistor's view of the page to the next visitor. This can make your admin bar visible to the next visitor.
Are there any CDNs at all that crawl entire sites in order to cache static pages, rather than caching views of these pages?
Also, on the issue of Cloudflare, their free version says it's only for blogs and personal sites. Since I'm running multiple commercial sites, I don't think I would qualify for their free plan, but I don't expect enough of a performance boost to justify their paid plan.
We offer a Free plan for small personal websites, blogs, and anyone who wants to evaluate Cloudflare.
whereas the modern theory is that with http/2 you can have a great many concurrent connections (to the same domain) so there is no bottleneck.
Unusual... Have you checked if Swarmify is actually speeding up your page loads? They seem to be more video-oriented rather than a "regular" CDN.
<script>
function changeMain(img, width, height) {
var msg = "<img src='" + home + "/photos/" + img + "' width='" + width + "' height='" + height + "' border='0'>";
document.getElementById('classifieds_img').innerHTML = msg;
}
</script>
<div id="classifieds_img">
<img src="$home/photos/1021264_0.jpg" width="275" height="155" border="0">
</div>
<div class="classifieds_thumbnails">
<div class="left"
onClick="changeMain('1021264_0.jpg', '275', '155')">
<img src="$home/thumbs/1021264_0.jpg" width="75" height="75" border="0">
</div>
<div class="left"
onClick="changeMain('1021264_1.jpg', '275', '155')">
<img src="$home/thumbs/1021264_1.jpg?h=20170203034317" width="75" height="75" border="0">
</div>
<div class="clear"></div>
</div> Swarmify only works when there are peers to retrieve data (videos and images) from. If you are the only person on your site then there are no other peers to download content from. Please makes sure that there are multiple people on your pages at the same time.
If you use Google Analytics, use the Site Speed report to gauge how the changes affect your users. It's under "Behavior", and I generally use the "Page Timings" report, more specifically the "DOM Timings" report with the "Avg. Document Content Loaded Time" metric selected, because I find it gives the most accurate view, excluding the loading of AdSense ads, for example (which I have no control over).
Since it's a peer-to-peer system, if you don't have many concurrent users, Swarmify is probably not a good pick
// Before Swarmify
2/12/17: 6.86s
2/13/17: 6.49s
// After Swarmify
2/14/17: 6.39s
2/15/17: 6.59s // Before Swarmify
2/12/17: 4.80Mbps
2/13/17: 4.11Mbps
// After Swarmify
2/14/17: 2.71Mbps
2/15/17: 2.37Mbps