Server-side webpage include implementation method and apparatus

An implementation method and server-side technology, which are applied to the implementation field of server-side web pages, can solve problems such as reducing system concurrency performance, and achieve the effect of reducing read operations and improving concurrent performance.

Inactive Publication Date: 2017-10-31
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
View PDF6 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] It can be seen that the existing server-side web pages contain implementation solutions, which

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Server-side webpage include implementation method and apparatus
  • Server-side webpage include implementation method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0017] In order to make the purpose, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0018] The core idea of ​​the present invention is to preferentially read the static file corresponding to the static path in the SSI command from the cache, so as to reduce the impact on the concurrent performance of the system during concurrent access.

[0019] figure 1 It is a schematic flow chart of Embodiment 1 of the present invention, such as figure 1 As shown, the implementation method of the server-side web page implemented in this embodiment mainly includes:

[0020] Step 101: Analyze the server-side include (SSI) instruction in the webpage response data, and obtain the static file path configured in the SSI instruction.

[0021] This step is used to parse the SSI instruction to obtain the static file path configured in the SS...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The application discloses a server-side webpage include implementation method and apparatus. The method includes: parsing a server side include (SSI) instruction in webpage response data to obtain a static file path configured in the SSI instruction; and according to the static file path, acquiring a static file corresponding to the static file path according to a strategy of acquiring a file from a cache in priority, and replacing the SSI instruction by using the content of the static file. Therefore, the concurrency performance of the system is improved.

Description

technical field [0001] The present invention relates to internet technology, in particular to a method and device for implementing web page inclusion at the server side. Background technique [0002] When developing a website, there are many scenarios about embedding server-side web pages. In these scenarios, before sending the webpage content (that is, the webpage response data) to the browser, it is necessary to perform server-side webpage include processing operations, that is, to include text, graphics, or application information into the webpage using server-side include (SSI) instructions. , for server page includes. [0003] Currently, web servers such as Tomcat, Nginx, and apache web use basically similar processing methods and implementation principles when performing server-side web page inclusion processing operations. It is necessary to analyze the SSI command in the web page response data, obtain the static file path configured in the SSI command, and then let...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04L29/08
CPCH04L67/568
Inventor 曹志飞未小亚
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products