C
C
ChillyProud2015-06-24 12:39:46
JavaScript
ChillyProud, 2015-06-24 12:39:46

What is better to use local storage or browser cache?

What is better to use for "caching"? Let's say I want to load json with translations when starting a web application. Does it make sense to put it in local storage or browser cache will do it absolutely fine?
Are there advantages or disadvantages to both methods?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
U
ummahusla, 2015-06-24
@Antonoff

Well, I remember when I tried to make HTML5 games using local storage, they were easily vulnerable, because from the console line, I could change whatever you want there.

C
CoolCmd, 2015-06-24
@CoolCmd

The browser cache is a tricky thing. here the user will load after your page to chenit thick - and Khan to your translations. and for some (for example, for me) the disk cache is disabled altogether. local storage will be killed only if the user wants to clean the cookies. so think for yourself whether this option suits you or not.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question