Closed Bug 744030 Opened 14 years ago Closed 12 years ago

[SEO][Bedrock] Google retrieves descriptions from dmoz; needs X-Robots-Tag: noodp

Categories

(www.mozilla.org :: General, defect)

defect
Not set
critical

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: kohei, Unassigned)

References

(Blocks 1 open bug, )

Details

(Keywords: regression)

Attachments

(2 files)

+++ This bug was initially created as a clone of Bug #682023 +++ I've noticed that Google cites the snippet of the Firefox home page from ODP/dmoz. https://www.google.com/search?q=Firefox&hl=en The Bedrock site needs > X-Robots-Tag: noodp
Severity: normal → major
Summary: [SEO][Bedrock] Force Google to use our own descriptions over ones retrieved from dmoz → [SEO][Bedrock] Google retrieves descriptions from dmoz; needs X-Robots-Tag: noodp
Severity: major → critical
Blocks: 744031
Blocks: 745355
Component: www.mozilla.org/firefox → www.mozilla.org
Taking this to work on it next week.
Assignee: nobody → anthony
I have an idea to fix that properly and I need to discuss with someone else.
FYI, there is a pull request here: https://github.com/jsocol/commonware/pull/12
(In reply to Anthony Ricaud (:rik) from comment #4) > FYI, there is a pull request here: > https://github.com/jsocol/commonware/pull/12 Were these changes ever pushed to prod? Can we close this bug?
Nope, not pushed. I have to act on the review comments.
Component: www.mozilla.org → General
Product: Websites → www.mozilla.org
Rik: I'm stealing this to polish up the pull req and get it merged. Will reassign back to you when I push a new version of commonware to PyPI.
Assignee: anthony → james
Looks like you released 0.4.0. As it's not critical, I'm gonna mark this as a mentored bug. What is involved here? - Update the commonware lib to >= 0.4.0 - Install commonware.response.middleware.RobotsTagHeader - Change X_ROBOTS_DEFAULT
Assignee: james → nobody
Whiteboard: [mentor=anthony@ricaud.me]
requirements/prod.txt contains this line: -e git://github.com/jsocol/commonware.git#egg=commonware So we are already using last version of commonware, right?
Ok, got it: we are using a sub-submodule (a submobule of playdoh-lib, which in turn is a submodule of bedrock). So to get the last commonware version I should make a pull request to playdoh-lib, wait it gets merged, and then make a pull request to bedrock. Rik: can you help me with this? Anyone else?
If it's difficult to modify HTTP headers, you can add the following meta tag to each page instead, like Bug 848839: <meta name="robots" content="noodp"> https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag
This should be much simpler, and of course doesnt' require a commonware upgrade. Any opinions?
(In reply to Giuseppe from comment #12) > This should be much simpler, and of course doesnt' require a commonware > upgrade. Any opinions? The "right" fix is to upgrade commonware (we need to keep playdoh-lib pretty up-to-date). It might not be the fastest fix, though.
(In reply to James Socol [:jsocol, :james] from comment #13) > The "right" fix is to upgrade commonware (we need to keep playdoh-lib pretty > up-to-date). It might not be the fastest fix, though. I can make a pull request, but we are blocked until it gets accepted.
This is already fixed on master.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Nope, it's still an issue on Bedrock.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
What's the status here? I still cannot see the X-Robots-Tag header. Should we fix the issue on Bedrock?
Status: REOPENED → NEW
Josh: can you check this out and see what you think?
Flags: needinfo?(jmize)
Whiteboard: [mentor=anthony@ricaud.me]
I verified that bedrock's version of playdoh-lib has commonware 0.4.2, which has a RobotsTagHeader middleware that sets the "X-Robots-Tag: noodp" header by default, but this middleware is not currently enabled in bedrock. I've submitted a PR to enable it.
Flags: needinfo?(jmize)
Commits pushed to master at https://github.com/mozilla/bedrock https://github.com/mozilla/bedrock/commit/af4bd97afec835c560099b169a151fac767af891 Fix Bug 744030 - Enable RobotsTagHeader middleware https://github.com/mozilla/bedrock/commit/2a3dfde1a36c66c7d206e897a2d60933233b795b Merge pull request #1351 from jgmize/bug-744030-x-robots-tag-noodp Fix Bug 744030 - Enable RobotsTagHeader middleware
Status: NEW → RESOLVED
Closed: 12 years ago12 years ago
Resolution: --- → FIXED
$ curl -I https://www-dev.allizom.org/en-US/ HTTP/1.1 200 OK Server: Apache X-Backend-Server: bedrock1.dev.webapp.phx1.mozilla.com Vary: Accept-Encoding Cache-Control: max-age=600 Content-Type: text/html; charset=utf-8 Date: Tue, 29 Oct 2013 14:05:37 GMT Expires: Tue, 29 Oct 2013 14:15:39 GMT Transfer-Encoding: chunked Connection: Keep-Alive X-Robots-Tag: noodp X-Frame-Options: DENY :)
Verified FIXED on trunk: https://www-dev.allizom.org/en-US/
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: