I
I
Ingerniated2019-04-01 14:28:01
Node.js
Ingerniated, 2019-04-01 14:28:01

What kind of caching on the web are we talking about if the browser itself stores all the files on its own?

Hello!
Please tell me this moment.
I came across an article about the fact that good servers always produce some kind of cache of something, but what was not indicated there.
But at the same time, node has a section about the cache, so when and how should you use it?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
R
RidgeA, 2019-04-01
@RidgeA

there is caching in the browser, when the client (browser) stores resources based on headers
; there is caching on web servers, when the web server stores the response in its cache for some key and headers - if different users request the same data, why choose them from the database every time and generally pull the backend for this, and the browser is not always the client;
there is caching in the application, when some data is saved somewhere (in the same session, for example), again, so as not to touch the database each time
you can cache queries to the database so as not to load it unnecessarily,
but I didn’t understand about node

R
Robur, 2019-04-01
@Robur

Caching is the second Big IT Problem.
You can cache anything, anywhere and however you want. Poke your finger at any piece of data, from a home element in a browser to a block on a hard drive, and you can build a cache around it. What the browser caches is just a drop in the ocean.
And what kind of caching was discussed in that article - it is better to read in that article.
If you want to get a better understanding of the topic of caching in general - stock up on a couple of hundred kg of cookies, a cistern of tea, say goodbye to your family and friends - and to Google.

F
funny_falcon, 2019-04-02
@funny_falcon

Caching in the browser helps the user well, and a little bit for the servers. But it does not save the server, because there are few servers (units / tens / (God forbid everyone) hundreds), and there are a lot of users (God forbid everyone).

S
Sergey delphinpro, 2017-01-16
@tereshock98

Turn on logic.
You set the absolute positioning, thus pulling the element out of the flow.
And you try to give it a flow.
Conclusion: float is not suitable for your task.
Think further. You set the position of the element. What properties set the position of the blocks?
Guessed already, probably - top, left, right, bottom.
PS. Feel free to turn on your brains =) Helps in solving problems.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question