WorldWideTelescope / wwt-web-client

The WorldWide Telescope web client lets you explore the universe in your browser.
https://worldwidetelescope.org/webclient/
MIT License
105 stars 35 forks source link

Start using wwtassets.org for webclient and webgl-engine static assets. #279

Closed pkgw closed 4 years ago

pkgw commented 4 years ago

The motivation here is that (beta-)cdn.worldwidetelescope.org is always going to have to route its requests through worldwidetelescope.org, which means they will have to go through the App Gateway reverse proxy before eventually being routed to wwtwebstatic (in the case of webclient static assets).

The new web.wwtassets.org is a CDN endpoint that points straight at the wwtwebstatic static website service. By using this new endpoint, we cut out the App Gateway middleman, which should reduce load on that service, hopefully be faster, and hopefully save us some money.

Like most big-ticket websites, we use a separate second-level domain, namely the new wwtassets.org. The apparent motivation is that that way you don't have the cookies from your main website making their way into every single one of your asset requests. I'd also like to think that it helps maintain clarity between the traffic that gets routed through the App Gateway and everything else. The domain is $13/yr right now so it feels easily worthwhile.