Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

load mathjax from CDN via https #1450

Merged
merged 1 commit into from Feb 29, 2012
Merged

Conversation

minrk
Copy link
Member

@minrk minrk commented Feb 28, 2012

Amazon CloudFront (MathJax's CDN) supports HTTPS, but their SSL certificate only applies to *.cloudfront.net urls. This retrieves the cloudfront host at runtime, and loads MathJax from there via HTTPS.

The cloudfront url is apparently stable, and not dynamic, so I could just use d3eoax9i5htok0.cloudfront.net instead of the gethostbyname call, but this approach seemed safer to changes in Amazon's structure, and will even continue to work if MathJax moves to a new CDN that actually supports HTTPS on the MathJax domain.

Amazon CloudFront (MathJax's CDN) supports HTTPS, but their SSL certificate only applies to *.cloudfront.net urls.  This retrieves the cloudfront host at runtime, and loads MathJax from there via HTTPS.
ellisonbg added a commit that referenced this pull request Feb 29, 2012
load mathjax from CDN via https.
@ellisonbg ellisonbg merged commit 925c31c into ipython:master Feb 29, 2012
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
load mathjax from CDN via https.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants