SSI Learning (1)

Source: Internet
Author: User
Overview

We usually talk about the caching technology, most of which are page-based. For example, the results that will be executed on a news website are cached as a static html file, the next time you access this static page, you will be directed to it!

Reduces the pressure on servers! However, if most pages are static, but some of them need to be dynamic, what should we do? In this case, you can use the dynamic content cache technology!

Solution

The most common solutions are CSI, SSI, and ESI.

CSI

CSI implemented the dynamic inclusion of the content of another page through IFRAME, JavaScript, Ajax, and other methods.

SSI

The SSI principle is to call the corresponding files of each module through SSI, and finally assemble them into HTML pages. The server module is required to support (commonly used Apache and ngnix). The disadvantage is that it cannot directly contain URLs of other servers,

It can only run on the current server.

ESI

ESI uses a simple markup language to describe content fragments in webpages that can be accelerated or cannot be accelerated, 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 whole page is crawled from the server,

However, only a small number of uncacheable fragments are extracted from the original server, which can effectively reduce the load on the original server and increase the response time of user access. Unlike SSI, ESI is mostly used on Cache servers or proxies.

Run on the server!

Currently, CSI and SSI are most commonly used, and ESI has fewer applications. For CSI and SSI, because the cache cannot be updated in a timely manner, there are currently fewer applications than ssi.

Summary:


  Application Mode Command mode Page suffix
CSI Client No instructions required. Ajax/iframe implementation requires no server support Common suffixes
SSI Server SSI commands require support from dedicated servers *. Shtml; *. inc
ESI Server ESI commands must be supported by dedicated servers Common suffixes








Reference: http://www.cnblogs.com/wbinblog/archive/2012/05/16/2503528.html

SSI Learning (1)

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.