The new Java project studies online notes -day12 (a)

1 search front-end technology needs 1.1 requirements described
using vue.js develop SEO search interface is unfriendly, need to address SEO issues.
The new Java project studies online notes -day12 (a)
The new Java project studies online notes -day12 (a)
The new Java project studies online notes -day12 (a)

From the graph you can see that SEO is a web site content themselves for the convenience of spider crawls the web and make optimization, common SEO methods such as:
1) the standardization of the url links, multi-purpose restful style url, the use of static resources url; 2) Note that title, keywords settings. 3) As the spider on the javascript support is not good for the jump page with a href tag.
. . . 1.3 server and client rendering rendering
of what technology is conducive to SEO? To answer this question requires understanding the client and server side rendering rendering. What is a server-side rendering our traditional servlet development for example:? Browser requests a servlet, servlet server html generate a response to the browser, the browser showing html content, this process is the server-side rendering, as shown below:
The new Java project studies online notes -day12 (a)

Server rendering features:

1) to generate html pages on the server side dom elements. 2) The client (browser) is responsible only for display dom element content.
With the arrival of the original web2.0, the rise of AJAX technology, there has been a client rendering: the client (browser) using AJAX initiate http request to the server, access to the desired data, the client took the data starts to render html page , Dom generating element, and finally display web content to the user, as shown below:
The new Java project studies online notes -day12 (a)

The client rendering characteristics:
1) on the server to the client only in response to the data, rather than the html page
2) client (browser) the server is responsible for getting data generated Dom elements.
Two ways what advantages and disadvantages?
Client Rendering:
1) drawback
is not conducive to site SEO, because the site is extensive use of javascript technology, is not conducive to spider crawls the web. 2) the advantage of
the client is responsible for rendering, the user experience is good, the server only provides content data do not care about the user interface, help to improve the efficiency of server-side development.
3) The system is suitable for SEO scene is not required, such as back office systems category, such as electricity providers backstage management, user management.

Side rendering services:
1) the advantage
in favor of SEO, website url href through the spider will lead directly to the server, the server provides high-quality content to the web spider. 2) disadvantages of
the server part of the client to complete the work, usually done a demand modifying the client and server code, development efficiency is low, is not conducive to the stability of the system.

3) systematic application scenarios required for SEO, such as: the portal home page, product detail page and so on.

Guess you like

Origin blog.51cto.com/13517854/2401382