Download - CDN implmentation consideration
ESI - Edge Side Include• Moves assembly of the web page from the
web server to the Edge server
• Allows easy caching of web page parts
• Can significantly increase caching rates and
lower origin load
Example without ESI<?php
require(‘user-header.php');
require('left-body.php');
require(‘user-body.php');
require('footer.php');
?>
• This happens on the Origin• The result changes for every user and is non-cacheable
Example using ESI<html>
<esi:include src="http://example.com/user-header.php?u=xyz" />
<esi:include src="http://example.com/left-body.php" />
<esi:include src="http://example.com/user-body.php?u=xyz" />
<esi:include src="http://example.com/footer.php" />
</html>
• This happens on the Edge
• Left-body and footer are cacheable
Application• Whole web site Static assets
• IP address
• Application purging
• Split static from dynamic content