S
S
SKEPTIC2021-03-03 21:32:08
Vue.js
SKEPTIC, 2021-03-03 21:32:08

How are ajax requests made to the server during SSR?

There is a SPA online store on vue.

When entering the catalog of goods / entering any product, ajax requests are made to the server to obtain data (price, availability, pictures, description, name, etc.) It is

necessary that the entire online store be indexed by search engines. That is, it is necessary that the goods be indexed. For example, when we drive in the search "buy a samsung smartphone" then we get all sorts of mvideo, dns, eldorado and so on. These links are for the products themselves. They somehow got there. So the search engines have indexed them.

I need the same. Now the question itself. Is SSR (Server Rendering) needed in this case? Or have search engines already learned how to index such SPAs?

I would also like to understand how SSR, if needed here, will save the situation. As I understand it, it generates markup on the server and gives it to the client. But I don't know about the data itself. Will ajax requests be made from the server itself to itself in order to pull data from the API?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Mukhin, 2021-03-03
@mukhindev

https://ssr.vuejs.org/ru/guide/data.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question