A
A
Andrey Elsukov2021-10-20 10:23:03
Node.js
Andrey Elsukov, 2021-10-20 10:23:03

How to increase the caching time for an Electron.js application?

I have an app written with vue js and electron js.
You need to make sure that applications cache data (almost everything that comes from the server).
As I understand it, there is caching, but it does not last longer than 15-20 minutes.
The question is:
How will it be correct to implement caching so that it is stored for a long time or is not deleted automatically?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Shamanov, 2021-10-20
@SilenceOfWinter

electron is a wrapper for chromium i.e. in fact this is a site - increase the lifetime of cookies, use localStorage, pass the lifetime in the header

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question