Edge Side Includes

Example pages with support for Edge Side Includes:

  • Ad Example
    • Displays a different HTML ad output based upon the user's browser type
    • The browser is detected using the HTTP_USER_AGENT variable
    • Attempts to esi:include the HTML for the ad by referencing an ad server
    • If the ad server cannot be contacted, a default ad is sent to the browser
  • Loop Example
    • Displays multiple values of query string with the same name using a list and recursively iterating through the list by using a recursive esi:include
    • Note, ESI supports up to five levels of includes
  • User Agent Example
    • Example which shows how to use the HTTP_USER_AGENT variable to determine the client's browser type and OS type