You need to check the browser cache, or rather whether the page being loaded is cached or not. This is necessary in order to notify users of the need to clear the cache when a design or the like has been updated on the site. Thank you in advance)
- Standard browser mechanisms are not satisfied? - Vladimir Gamalyan
- 21) Last-Modified and If-Modified-Since headers will help only for html pages. For css, js, img can be fooled and done; 2) Actually for css, js, img and others - changing the parameter in the link, for example, was '/link/image.jpg?v=1234', should become '/link/image.jpg?v=1235'. As a result, such files will be downloaded again by default. Asking users to do something themselves is not correct. They still won't do it. - uorypm
- Vladimir, any decisions will make me happy) just a novice and I don’t know where to dig (What standard mechanisms are you talking about? - Andrey
- @uorypm has already written, I can add that for all sorts of pictures there you can use gulp / grunt collectors that will change their names every time they change, so that the browser reloads them. - Vladimir Gamalyan
- If there’s really some kind of exotic (the server gives incorrect information about the changes), you can add a js script that will request the version from the server, check it with its own, and display the necessary message. - Vladimir Gamalyan
|