Replies: 0
Related to https://wordpress.org/support/topic/many-404-errors-but-only-from-googlebot/?replies=10
The main problem when getting 404 for gone optimized files is its file name. So I suggest to never change optimized filenames, but add to output ?ver={ upper then previous } to force browsers get new version from server instead of cached in next conditions:
1. If anyone files have changed because of new $ver that was set in functions wp_register_ / wp_enqueue_, or because of new md5 hash value of each file.
2. Inline code/scripts, that was changed as well.
The only two reasons to change optimized filenames will:
1. js/css are might differ because of different pages.
2. After purge cache. But leave appropriate notice with consequences for search engines.
happy holidays 🙂