Valentin Waeselynck
Valentin Waeselynck

Reputation: 6061

Are CDNs that don't cache useful?

Is there any benefit to (HTTP-) serving a non-cacheable resource over a CDN?

(my use case: I'm serving a static Single Page App and I'd like to improve its load time, but I don't want index.html to get cached, because I want every new release to be reflected immediately. Specifically, this static site is hosted on AWS S3, and the CDN is AWS CloudFront.)

I assume that most of the performance benefits of CDNs are achieved through caching, but I could imagine other benefits due to, say, priviledged network infrastructure. As I don't know the first thing about networks, this may sound like a silly question.

Upvotes: 1

Views: 85

Answers (1)

driis
driis

Reputation: 164341

Yes, it can be useful by moving the content closer to the user. Most CDN's will serve your static file from a geographical location as close to the user as possible, typically providing better latency.

Of course, you need to have users across the globe for this to make sense to you.

Upvotes: 2

Related Questions