Introduction to dynamic content caching technology CSI, SSI and ESI

Source: Internet
Author: User


1. The CSI solution CSI dynamically includes the content of another page through IFRAME, JavaScript, Ajax, and other methods. 2. SSI solution SSI (server side encryption DES) server side encryption DES (SSI) is a simple interpreted server-side scripting language used almost exclusively for the web. in an HTML file, you can call the command or pointer through the annotation line. Updates the content of the entire website. SSI requires a special file suffix (shtml, Inc ). Example: <! -- # Include virtual = ".. /date. JSP "--> 3. the ESI solution ESI (edge side primary des) edge side primary des (Esi) and server side primary des (SSI) have similar functions. Edge side include describes content fragments in webpages that can be accelerated or cannot be accelerated using simple markup language, each web page is divided into different small parts to assign different Cache control policies, the cache server can dynamically combine different parts of a page before sending the complete webpage to the user based on these policies. This control can effectively reduce the number of times the server captures the entire page. Instead, it only extracts a small number of uncacheable fragments from the original server. Therefore, it can effectively reduce the load on the original server, at the same time, it increases the response time of user access. It is generally used for cache servers such as varnish and squid. Akamai ESI Solution

Advantages of the solution CSI can use the browser client's parallel processing and loading mechanism. This technology basically does not require server support or modification, and computing and operations are placed on the client, which can reduce the pressure on the server. SSI general technology is not restricted by specific languages. It only requires support from Web servers or application servers. ngnix, Apache, IIS, tomcat, and JBoss all provide better support for this technology. ESI is more suitable for caching the entire page or page segment on the cache server, so ESI is particularly suitable for caching. Disadvantages: CSI Search Engine Optimization. Javascript compatibility issues. The client cache may not take effect immediately after the server content is updated. It is often solved by adding the JS version. SSI syntax does not directly contain URLs of other servers. It can only run on the current server. ESI is not widely used and few software is supported.

 

SSI Common commands
Directive Parameters Example
Include File or virtual <! -- # Include virtual = "menu. cgi" --> relative domain Root
<! -- # Include file = "footer.html" --> relative to the current file
Echo VaR <! -- # Echo Var = "remote_addr" -->
If, Elif, else, endif Expr <! -- # If expr = "$ {sec_nav}" -->
<! -- # Include virtual = "secondary_nav.txt" -->
<! -- # Elif expr = "$ {pri_nav}" -->
<! -- # Include virtual = "primary_nav.txt" --> <! -- # Else -->
<! -- # Include virtual = "article.txt" -->
<! -- # Endif --> expr: supports regular expression matching/regular expression/
Set VaR, Value <! -- # Set Var = "foo" value = "bar" -->

ESI Common commands <ESI: Include src = "Uri" alt = "Uri" onerror = "continue"/>

Introduction to dynamic content caching technology CSI, SSI and ESI

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.