Use following snippet in your functions.php:
https://trasweb.net/blog/desarrollo-a-medida/solucionando-el-problema-de-cache-de-archivos-en-wordpress-49

it should solve both bugs.