Closed Bug 850116 Opened 11 years ago Closed 11 years ago

[bedrock] CDN not sending CORS header with json file

Categories

(Infrastructure & Operations Graveyard :: WebOps: Other, task)

All
Other
task
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: pmac, Assigned: nmaul)

References

Details

The collusion demo is broken (bug 848527) due to the trackers.json file being ignored because of the CDN and same-origin policy. I added the CORS header to the file, which is working on mozilla.org. The CDN has gotten a new version of the file since then but is still not setting the Access-Control-Allow-Origin header.

$ curl -I https://www.mozilla.org/media/js/collusion/trackers.json
HTTP/1.1 200 OK
Server: Apache
X-Backend-Server: bedrock1.webapp.phx1.mozilla.com
Cache-Control: max-age=31536000
Content-Type: application/json
Date: Tue, 12 Mar 2013 02:55:07 GMT
Expires: Wed, 12 Mar 2014 02:55:07 GMT
Accept-Ranges: bytes
Access-Control-Allow-Origin: *
ETag: "4bc68db04fb00"
Last-Modified: Thu, 29 Mar 2012 22:00:44 GMT
X-Cache-Info: caching
Content-Length: 58069

curl -I https://mozorg.cdn.mozilla.net/media/js/collusion/trackers.json
HTTP/1.1 200 OK
Last-Modified: Thu, 29 Mar 2012 22:00:44 GMT
ETag: "4bc68db04fb00"
Server: Apache
X-Cache-Info: not cacheable; response code not cacheable
X-Backend-Server: bedrock2.webapp.phx1.mozilla.com
Content-Type: application/json
Accept-Ranges: bytes
Content-Length: 58069
Cache-Control: max-age=31499735
Expires: Tue, 11 Mar 2014 16:50:23 GMT
Date: Tue, 12 Mar 2013 02:54:48 GMT
Connection: keep-alive
Blocks: 848527
Assignee: server-ops-webops → nmaul
This appears to be purely a caching issue... by adding a random query string to the second curl in comment 0 I was able to get a response that included the CORS header.

I've issued a cache purge on that one file, and it should complete in a few minutes. It appears to be working properly for me already.

[jakemaul@jakebook ~]$ curl -I 'https://mozorg.cdn.mozilla.net/media/js/collusion/trackers.json'
HTTP/1.1 200 OK
Server: Apache
X-Backend-Server: bedrock3.webapp.scl3.mozilla.com
Content-Type: application/json
Accept-Ranges: bytes
Access-Control-Allow-Origin: *
ETag: "4bc68db04fb00"
Last-Modified: Thu, 29 Mar 2012 22:00:44 GMT
X-Cache-Info: caching
Content-Length: 58069
Cache-Control: max-age=31535976
Expires: Wed, 12 Mar 2014 23:54:03 GMT
Date: Tue, 12 Mar 2013 23:54:27 GMT
Connection: keep-alive
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Component: Server Operations: Web Operations → WebOps: Other
Product: mozilla.org → Infrastructure & Operations
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in before you can comment on or make changes to this bug.