Z
Z
Zakonoposlushniy2018-07-14 14:11:11
Google Chrome
Zakonoposlushniy, 2018-07-14 14:11:11

Chrome does not want to delete the cached version of the site. What to do?

Hello!
Chrome (and with it Explorer) does not want to delete the cached version of the site.
I already cleared the cache and did a hard reload of the page, and also tried it through ctrl + f5. Nothing works.
In Yandex browser, everything is displayed well.
What can be done in such a situation?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Evgeny Vyushin, 2018-07-14
@Zakonoposlushniy

The easiest way to get rid of the cache, both files and requests, is to add a GET parameter to the query string.
For example:
If you normally request the site https://www.example.com/, then you can add the `no-cache=1` parameter to the request. This will result in a request https://www.example.com/?no-cache=1
Often the same technique is used to reset the cache of static files such as css and js (and any others).
For example:

<script src="script.js?v=1.0"></script>
<link rel="stylesheet" type="text/css" href="style.css?v=5.2"/>

Thus, when updating file versions, you will need to change the GET parameter v and then the browser will load the fresh, uncached version of the file.
Caching is a big topic and there are many ways to manage the cache.
I described only one of the possible options.

S
SagePtr, 2018-07-14
@SagePtr

Website over HTTPS? If via HTTP, then there is a possibility that the provider has a caching proxy somewhere along the way that transparently intercepts requests

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question