摘要 |
Nested fragment caching of web pages is described. In response to receiving a request for a web page, first-level fragment information of the web page is obtained. Based on the first-level fragment information, a fragment analysis process is successively performed for first-level fragments, wherein the fragment analysis process includes rendering the first-level fragments based on preset nesting information of the first-level fragments. The nesting information includes information about whether a current fragment includes other fragments. Results of the fragment analysis process are combined to generate complete content of the first-level fragments of the web page. The exemplary embodiments of the present disclosure not only allow nested fragment caching of a web page, but also recursively obtain HTML codes of each fragment when nested fragment caching of the web page is performed, thus displaying complete content of the web page to a user. |