Videos linked on https://careers.mozilla.org are not being served by CDN despite using CDN link on the website. Steps to reproduce: └─▪ curl -I https://videos.cdn.mozilla.net/serv/hr/Firefox_Monument_2014.mp4 HTTP/1.1 302 Moved Temporarily Content-Type: text/html; charset=iso-8859-1 Content-Length: 262 Connection: keep-alive Server: Apache X-Backend-Server: videos-origin.webapp.scl3.mozilla.com Date: Tue, 26 Jul 2016 16:24:00 GMT Location: https://videos-real-origin.cdn.mozilla.net/uploads/hr/Firefox_Monument_2014.mp4 Age: 1472 X-Cache: Hit from cloudfront Via: 1.1 86c0812ce1a102d2ac2a7840d015c43b.cloudfront.net (CloudFront) X-Amz-Cf-Id: _RMxmcPUxVqcu7BQJYLGEJbucSNT19sFhFjvmmrX4BOb_x47jLSyOw== New location: videos-real-origin.cdn.mozilla.net is not CDN backed.
Assignee: nobody → rsoderberg
As discussed in #ee-infra on IRC, notice that the path is changing from /serve/hr/ to /uploads/hr/ in addition to the domain change. Most likely this is an absolute redirect configured on the origin server, presumably apache, and it needs to be a relative redirect instead so that cloudfront doesn't cache the redirect to the origin domain. The video files are available under the /uploads/ path, so changing the src on the careers website to use that (https://videos.cdn.mozilla.net/uploads/hr/Firefox_Monument_2014.mp4 in this example) should avoid this issue even without apache config changes.
I'm not sure how this was originally setup, but jgmize identified the correct solution. Content-Type: video/mp4 Content-Length: 29795908 Two consecutive requests produced: X-Cache: Miss from cloudfront Then: X-Cache: Hit from cloudfront
Filed PR #173 to update the links https://github.com/mozmar/lumbergh/pull/173
Commits pushed to master at https://github.com/mozmar/lumbergh https://github.com/mozmar/lumbergh/commit/b2cf69a4bfc749938dd0d76967eb116eaff8e7ed [bug 1289507] Update video links. https://github.com/mozmar/lumbergh/commit/9122b604628a2aca4a517e4b5e623f9b5ed4b5fd Merge pull request #173 from glogiotatidis/fix-video-src [bug 1289507] Update video links.
This was fixed, closing.
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.