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)
www.mozilla.org
General
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
| Reporter | ||
Updated•14 years ago
|
Severity: normal → major
| Reporter | ||
Updated•14 years ago
|
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
| Reporter | ||
Updated•14 years ago
|
Severity: major → critical
| Assignee | ||
Updated•14 years ago
|
Component: www.mozilla.org/firefox → www.mozilla.org
Comment 3•13 years ago
|
||
I have an idea to fix that properly and I need to discuss with someone else.
Comment 4•13 years ago
|
||
FYI, there is a pull request here: https://github.com/jsocol/commonware/pull/12
Comment 5•13 years ago
|
||
(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?
Comment 6•13 years ago
|
||
Nope, not pushed. I have to act on the review comments.
| Assignee | ||
Updated•13 years ago
|
Component: www.mozilla.org → General
Product: Websites → www.mozilla.org
Comment 7•13 years ago
|
||
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
Comment 8•13 years ago
|
||
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?
Comment 10•13 years ago
|
||
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?
| Reporter | ||
Comment 11•13 years ago
|
||
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
Comment 12•13 years ago
|
||
This should be much simpler, and of course doesnt' require a commonware upgrade. Any opinions?
Comment 13•13 years ago
|
||
(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.
Comment 14•13 years ago
|
||
(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.
Comment 15•13 years ago
|
||
Here is the PR: https://github.com/mozilla/playdoh-lib/pull/35
| Reporter | ||
Comment 16•12 years ago
|
||
This is already fixed on master.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 17•12 years ago
|
||
Nope, it's still an issue on Bedrock.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
| Reporter | ||
Comment 18•12 years ago
|
||
What's the status here? I still cannot see the X-Robots-Tag header. Should we fix the issue on Bedrock?
Status: REOPENED → NEW
Comment 19•12 years ago
|
||
Josh: can you check this out and see what you think?
Flags: needinfo?(jmize)
Whiteboard: [mentor=anthony@ricaud.me]
Comment 20•12 years ago
|
||
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)
Comment 21•12 years ago
|
||
Comment 22•12 years ago
|
||
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
Updated•12 years ago
|
Status: NEW → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 23•12 years ago
|
||
$ 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.
Description
•