How to reset the cache?

What I want to do. A website which is edited once a week, edited in mainly html and css and the problem occurs in cache, so users downloaded the old styles and the result is kasha Malasha. I know that there is a meta tag which is "prohibited" from being cached. Actually meta tag:
<meta http-equiv="cache-control" content="no-cache"> <!-- Exactly that! -->
<meta http-equiv="expires" content="0"> <!-- What is it? -->

BUT! He just is not cached, and I would like to specify a last modified date on the website. Here is an example: let's Say I changed the css, js or html and so on. And written in the meta tag is valid ""02.05.2019 22:15"" if the user has the cache prior to this date, it is automatically updated. Do not store the cache does not go, since the site is quite weighty and has a huge amount of images and powerful css files. Download website without cache 13 seconds, cache 2.8 seconds. And despite the fact that all files are compressed in one line. And pictures were also compressed.
Don't know whether you need it but just in case I will specify. The index file is edited as normal html and has the structure:
<!DOCTYPE html>
<html lang="EN">
the <head>
 <meta charset="UTF-8">
the <body>
 <!-- Site -->

But after pouring over hosting changing permission to "index.php" in order to pass on e-mail feedback UTM codes.
Thank you all in advance for your help.
March 20th 20 at 11:26
1 answer
March 20th 20 at 11:28
Prohibit caching is not worth it. To force the client to update the files, you must plug the end of the file after the question mark to specify a different end. It is good practice to specify the version:
<link rel="stylesheet" href="css/style.css?ver=0.0.56">
Thank you very much) You just saved me! - lina_Wintheiser commented on March 20th 20 at 11:31
how is that for framwork to do? for example, angular 2+ ? - terrance_Casper commented on March 20th 20 at 11:34
@Timmy9, I'm not particularly familiar with angular. This method works for any plugin file in the html markup. This can be a js:
<script src="js/script.js?ver=0.0.56"></script>
or picture:
<img src="images/ico.png?ver=0.0.56">
and any other file - Asha_Cole58 commented on March 20th 20 at 11:37

Find more questions by tags Web Development