Closed Bug 1118318 Opened 9 years ago Closed 9 years ago

Serve 4xx response status code for deleted documents

Categories

(developer.mozilla.org Graveyard :: Wiki pages, enhancement)

All
Other
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: fs, Assigned: groovecoder)

Details

(Whiteboard: [specification][type:change])

What feature should be changed? Please provide the URL of the feature if possible.
==================================================================================
https://developer.mozilla.org/en-US/docs/Web/HTML/Watch_Lost_Girl_Season_5_Episode_6_:_Clear_Eyes,_F

What problems would this solve?
===============================
I am not sure, but I guess to prevent indexing of deleted but not yet purged docs, we could send a 404 header. Alternatively, noindex meta tag (or both).

Who would use this?
===================
Spam fighters.

What would users see?
=====================
Hopefully even less visible spam.

What would users do? What would happen as a result?
===================================================
I guess it would make deleted docs even less prominent for humans and search engines.

Is there anything else we should know?
======================================
Blocking the spam tree bug.

We may also use a 410 Gone status code if that's better to get the urls out of search indices.
Yes, 410 is better for removing info from search engines. (I've edited the title)
Summary: Serve 404 for deleted documents → Serve "410 Gone" for deleted documents
Severity: normal → enhancement
Component: General → Wiki pages
Assignee: nobody → lcrouch
This is not a good idea, see http://searchenginewatch.com/sew/how-to/2340728/matt-cutts-on-how-google-handles-404-410-status-codes

"If a page is gone and you think it's temporary, go ahead and use a 404. If the page is gone and you know no other page that should substitute for it, you don't have anywhere else that you should point to, and you know that that page is going to be gone never come back, then go ahead and serve a 410."

In other words 410 is not what we want for logically deleted but not yet purged documents. We should keep using 404 for this.
Commits pushed to master at https://github.com/mozilla/kuma

https://github.com/mozilla/kuma/commit/2bb8b92dd8b8177541c5d0dbc7e83abeba09d4bb
fix bug 1118318 - return 410 for deleted docs

https://github.com/mozilla/kuma/commit/2f7d56dfd368b837f8ca07db1a8dd62fe4ef5c9f
Merge pull request #2996 from groovecoder/deleted-docs-410-1118318

fix bug 1118318 - return 410 for deleted docs
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Updating summary to match our decisions in the PR.
Summary: Serve "410 Gone" for deleted documents → Serve 4xx response status code for deleted documents
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.