Delete cache entries on both 404 and 410 responses.

Why static?