S
S
Sergey Bulgakov2021-10-06 16:18:39
Client side optimization
Sergey Bulgakov, 2021-10-06 16:18:39

How to programmatically control the cache?

Hello,
the site originally had a logo in png. Then I converted it to svg.
Yesterday it turned out that not all elements of the logo in svg are shown on the iphone.
I made an old png logo. Reset the cache of files that indicate the logo.
Now it turns out that everywhere (windows, mac) the logo is shown. But the old logo is still visible on the iphone, parts of which are not visible.
Who has any useful thoughts how to KILL!!! cache everywhere? For a good logo to show up everywhere.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Shumov, 2021-10-06
@inoise

Release practice of generating unique paths, even if with the addition of a useless get parameter. It is worth mastering the same webpack for these purposes

V
Vladimir Korotenko, 2021-10-06
@firedragon

with a new version, change the number, well, or webpack itself changes
<img src="img/logo.png?v=1"/>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question