Invalid manifest update

see the manifest update on the Internet, which roughly means that the browser will detect whether the manifest file has been changed, and refresh the cache list
if the change is made. In fact, although Application Cache Progress event (83 of 83 is displayed under console in the chrome test, the content actually used has not been updated. Please tell us how to solve the related problems.
the related code is as follows:

<script type="text/javascript">
window.addEventListener("load", function(e) {
    if(typeof(window.applicationCache) != "undefined")
    {
        var appCache = window.applicationCache;
         window.applicationCache.addEventListener("updateready", function(e) {
            if (window.applicationCache.status == window.applicationCache.UPDATEREADY) {
                window.applicationCache.swapCache();
                //if (confirm("A new version of this site is available. Load it?")) {
                    setTimeout(function(){
                        window.location.reload();
                    },500);
                //}
            }
        });
        appCache.update();
    }
}, false);
</script>

Menu