3 ms·
> Users may have the file pre-cached This is no longer true. Due to security concerns browsers no longer re-use the cache between websites. That said, hosting
by Swizec 5y ago
> Users may have the file pre-cached
This is no longer true. Due to security concerns browsers no longer re-use the cache between websites.
That said, hosting assets yourself is fantastic if you use a CDN. Accessing American websites without CDN from Europe can be quite rough. I remember one of my first remote freelancing gigs where it took about 5s to load the company’s website hosted on Heroku. Just because of availability zones.
At my current gig, we self-host our assets and it’s fine because we’re US-centric. We host in us-west-2 and I live in SF and everything loads super fast. But you can really tell the dev site loads slower when working from the east coast.
Network latency is no joke.
- Lascaille 5y ago
- angrais 5y agoSelf hosting means downloading the source of a script (e.g., jQuery), and hosting on the servers your site/app serve from. So I assume that GPs site is hosted on AWS and this may make more sense? Else yes, a bit confusing.
- Swizec 5y agoWhat? The whole infra runs on us-west-2 and there are no 3rd party resources loaded from elsewhere. You expect us to run servers in our bedrooms to count as self hosting?
- Lascaille 5y ago
- eyelidlessness 5y agoThe article and the comment are talking about hosting the site and its resources in the same place/on the same domain, not about the kind of hosting used. This advice still holds even if your entire site is behind a CDN.