@@ -32,9 +32,11 @@ $ curl -i {{ site.data.variables.product.api_url_pre }}/users/octocat/orgs
3232> Status: 200 OK
3333> ETag: "a00049ba79152d03380c34652f2cb612"
3434> X-GitHub-Media-Type: github.v3
35+ {% if page.version == 'dotcom' %}
3536> X-RateLimit-Limit: 5000
3637> X-RateLimit-Remaining: 4987
3738> X-RateLimit-Reset: 1350085394
39+ {% endif %}
3840> Content-Length: 5
3941> Cache-Control: max-age=0, private, must-revalidate
4042> X-Content-Type-Options: nosniff
@@ -504,9 +506,11 @@ $ curl -i {{ site.data.variables.product.api_url_pre }}/user
504506> Last-Modified: Thu, 05 Jul 2012 15:31:30 GMT
505507> Status: 200 OK
506508> Vary: Accept, Authorization, Cookie
509+ {% if page.version == 'dotcom' %}
507510> X-RateLimit-Limit: 5000
508511> X-RateLimit-Remaining: 4996
509512> X-RateLimit-Reset: 1372700873
513+ {% endif %}
510514
511515$ curl -i {{ site.data.variables.product.api_url_pre }}/user -H 'If-None-Match: "644b5b0155e6404a9cc4bd9d8b1ae730"'
512516> HTTP/1.1 304 Not Modified
@@ -515,19 +519,23 @@ $ curl -i {{ site.data.variables.product.api_url_pre }}/user -H 'If-None-Match:
515519> Last-Modified: Thu, 05 Jul 2012 15:31:30 GMT
516520> Status: 304 Not Modified
517521> Vary: Accept, Authorization, Cookie
522+ {% if page.version == 'dotcom' %}
518523> X-RateLimit-Limit: 5000
519524> X-RateLimit-Remaining: 4996
520525> X-RateLimit-Reset: 1372700873
526+ {% endif %}
521527
522528$ curl -i {{ site.data.variables.product.api_url_pre }}/user -H "If-Modified-Since: Thu, 05 Jul 2012 15:31:30 GMT"
523529> HTTP/1.1 304 Not Modified
524530> Cache-Control: private, max-age=60
525531> Last-Modified: Thu, 05 Jul 2012 15:31:30 GMT
526532> Status: 304 Not Modified
527533> Vary: Accept, Authorization, Cookie
534+ {% if page.version == 'dotcom' %}
528535> X-RateLimit-Limit: 5000
529536> X-RateLimit-Remaining: 4996
530537> X-RateLimit-Reset: 1372700873
538+ {% endif %}
531539```
532540
533541##Cross Origin Resource Sharing
@@ -545,7 +553,7 @@ Here's a sample request sent from a browser hitting
545553$ curl -i {{ site.data.variables.product.api_url_pre }} -H "Origin: http://example.com"
546554HTTP/1.1 302 Found
547555Access-Control-Allow-Origin: *
548- Access-Control-Expose-Headers: ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
556+ Access-Control-Expose-Headers: ETag, Link, X-GitHub-OTP,{% if page.version == 'dotcom' %} X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,{% endif %} X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
549557Access-Control-Allow-Credentials: true
550558```
551559
@@ -557,7 +565,7 @@ HTTP/1.1 204 No Content
557565Access-Control-Allow-Origin: *
558566Access-Control-Allow-Headers: Authorization, Content-Type, If-Match, If-Modified-Since, If-None-Match, If-Unmodified-Since, X-GitHub-OTP, X-Requested-With
559567Access-Control-Allow-Methods: GET, POST, PATCH, PUT, DELETE
560- Access-Control-Expose-Headers: ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
568+ Access-Control-Expose-Headers: ETag, Link, X-GitHub-OTP,{% if page.version == 'dotcom' %} X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,{% endif %} X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
561569Access-Control-Max-Age: 86400
562570Access-Control-Allow-Credentials: true
563571```
@@ -576,9 +584,11 @@ $ curl https://api.github.com?callback=foo
576584> /**/foo({
577585> "meta": {
578586> "status": 200,
587+ {% if page.version == 'dotcom' %}
579588> "X-RateLimit-Limit": "5000",
580589> "X-RateLimit-Remaining": "4966",
581590> "X-RateLimit-Reset": "1372700873",
591+ {% endif %}
582592> "Link": [ // pagination headers and other links
583593> ["https://api.github.com?page=2", {"rel": "next"}]
584594> ]