var borraCache= function(url){caches.open('c').then((cache) =>{cache.delete(new URL(url));location.reload();}).catch(err=>{})} borraCache(document.location);