Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

My sense is that it was always pretty low. What are the odds two sites use the same exact version of jquery and same third party cdn while the cache is still warm?


I guess it really depends on the use case and the library.

I can imagine a tonne of WP sites referencing jQuery from the Google CDN, e.g.: https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.mi...

Looking at the headers the JS asset would be cached for 1 year.


There are always a few exceptions.

But you also must consider that most people most times visit a small set of domains.

Which means that most times they will have jquery and similar cached even without cross domain caching.


I guess the CDNs assume people should use libraries without version pinning, ie "latest".




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: