Define file modified cache object in one call to avoid 2 requests at the same time confusing the if statements