Delete cache entries on both 404 and 410 responses.

No need to redefine the variable over and over when it will never change.