Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question