Evening David;
If only from googlebot, then I wouldn’t worry about that too much. Google seems to keep pages in their own cache, checking resources (JS/ CSS) for them later. If in the mean time you removed AO (and/ or cleared its cache) then you’re bound to see 404’s for those, but this won’t impact what normal visitors see.
if you _really_ want to get rid of them, you could add a rule in your .htaccess (something like this) to return a 410 (gone) instead of a 404 for all requests for /wp-content/cache/autoptimize/* ?
good luck,
frank
Hi Frank,
Thank you but I’m not a dev so sometimes it’s quite complicated to understand and in fact I don’t completely understand those conversations.
Do you think they will disappear after a few weeks from googlebot?
Otherwise, I don’t understand how to redirect in another way as 410 this line: /wp-content/cache/autoptimize/* with the code below, I suppose.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*) "-" [G,NC]
</IfModule>
Thanks
Do you think they will disappear after a few weeks from googlebot?
Yes, they will.
I don’t understand how to redirect in another way as 410 this line
well, you would have to re-create wp-content/cache/autoptimize and inside that autoptimize-folder create a file called .htaccess and copy/past that code in there (but do take into account this will only work if you are on Apache)
hope this clarifies,
frank
Ok, I get that, thank you.
I see how long it takes from google to learn they are gone and if it takes too much I do as you suggested.