Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
cypherpunks01
on Dec 12, 2012
|
parent
|
context
|
favorite
| on:
CDNJS: The Fastest Javascript Repo on the Web
Could you set up a CNAME on your website that points cdnjs.mycompany.com to cdnjs.cloudflare.com to solve this (for your site visitors)?
Or would that mess up cloudflare's anycast DNS?
marshray
on Dec 12, 2012
[–]
Wouldn't the browser still send cdnjs.mycompany.com in the Host: header and break the page?
nikcub
on Dec 12, 2012
|
parent
[–]
that is exactly what happens. the server isn't setup to respond to requests to the cdnjs.mycompany.com hostname and it returns a 409 error.
cypherpunks01
on Dec 12, 2012
|
root
|
parent
[–]
Ah, thanks for the info. Damn virtual hosts!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Or would that mess up cloudflare's anycast DNS?