Cache 404 responses on HEAD requests