Hello.
There is a technique called "Phantom Querystring" that solves this problem in most browsers.
In PHP it is done like this:
<link href="/file-css.css?<?php echo time(); ?>" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/file-javascript.js?<?php echo time(); ?>"></script>
Rendering:
<link href="/file-css.css?1433981258" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/file-javascript.js?1433981258"></script>
This generates a different URL on each "F5" and forces the browser to download the file again.
This technique is used to not have to change the web server header settings.
Update
The above solution can cause two problems:
1) The increase of internet traffic of the web server.
2) The web application loads slower because it does not use the benefits of the browser cache.
So to solve these two problems there are two solutions.
1st solution:
Create a constant that would be updated only when the CSS and JS files change version.
In ASP.NET:
I put a constant in the Web.config that indicates the version:
<appSettings>
<add key="Version" value="1254"/>
</appSettings>
In Site.Master I put:
<link href="/file-css.css?<%= ConfigurationManager.AppSettings["Version"] %>" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/file-javascript.js?<%= ConfigurationManager.AppSettings["Version"] %>"></script>
In PHP:
It is recommended that the constant "Version" be created in a file of type "config.php". But I put it here just for demonstration:
<?php
define("Version", "1254");
?>
<link href="/file-css.css?<?php echo Version; ?>" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/file-javascript.js?<?php echo Version; ?>"></script>
Both programming languages generate the same result in HTML:
<link href="/file-css.css?1254" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/file-javascript.js?1254"></script>
2nd solution
Write the HTML already itself by changing the "1254" numbering only when the CSS and JS files change version.
This last solution I consider to be the easiest.
References: Prevent Your CSS and JavaScript Files From Being Cached