How to solve the caching problem when rendering on the server side

vue and react use ssr (server-side rendering) to solve seo and first-screen rendering solutions.
this extends the problem. 80% of the data after http or other network requests is duplicated, and http caching is also a big problem?
how do you solve the problem, file, memory, database.
after the following analysis, it is concluded that the file is the most appropriate. The database also goes through the network, otherwise it will be modified to socket or http request, and the database is not suitable for performance comparison, especially when I run the server rendering server through the container.
memory, which is not appropriate if the data is large.

how do you solve the cache problem?

`


1. Page caching is time-limited, and server rendering is not recommended for real-time and new pages.
2, server cache and browser cache can be set or completely disabled.

reference: Nginx cache settings link description H5 page cache settings link description

Menu