Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

Aren't CDN's usually caching legit data though?


sort by: page size:

CDNs caches will only be as legit as the customers using them. And since moderating content at scale is a hard problem, one cannot assume all CDN data is legit.

I think most CDNs nowadays do not cache as much as you think because they are used for tracking.

No, they have not always done this. But the supposed caching benefits of CDNs have always been overstated.

Nope, spot on. You either cache extremely aggressively with a CDN if you can, or otherwise you eat the data out charges for dynamic data.

I wish I could find it, but I read an article a while ago that showed how CDN-cached stuff usually, well, isn't. At the very least it's not something to rely on when making decisions about payload size.

Wouldn't the CDN'd resource be already cached for most users (if we're talking about the average, often used resource)?

If you use a CDN isn't it cached across multiple sites?

This is true, but how could a CDN possibly cache a response without access to it? Unfortunately it seems to be a necessity.

It kinda depends on statistics; I'd like to see some figures about CDN cache hits like that. I know the theory is sound, but I also gathered that one usually only gets 20% cache hits on websites with caching enabled. or something.

Wouldn't that interpretation work itself out in a number of hours? CDNs are usually just a hot cache no?

A sane CDN doesn't cache error responses. There is no legitimate reason to cache a non 2xx/3xx response, unless you / your CDN is really pinching pennies.

Caching a 5xx kinda makes sense I guess, but a 4xx client error? That's nuts.


If included, in full, via a CDN, wouldn't this be mostly cached? (I use bootstrapCDN)

"""1) You can't always count on users having cached it from the CDN."""

No, but you can always count the MAJORITY of users will have it cached from the CDN.


Seems like this site could used a caching CDN lol

All CDN use byte-range caching too.

That's the cache in the browser, not the cache in the CDN.

Cached with what? The $0 cost hardware you gave to the ISP for free? You expect every ISP is just going to give you free CDN services?

If it is in the cache, why is the CDN needed anyways?

I don't think that would play well with cdn caching.
next

Legal | privacy