by marketer · 15y ago · 0 comments
I don't think that's correct at all. Perhaps browsers have more secure defaults with SSL, but if you're explicit and specify Cache-Control headers, it'll be cached.
The jquery version specified on Google CDN's have Cache-Control public, so it'll be cached on disk.
Just put up a blog post about this: http://news.ycombinator.com/item?id=2120773
On top of that, that's not "crippling google's CDN caching" at all, that article is over exaggerating.
You've glossed over the actual point of the post though. Even if every version of every browser did respect the cache-control header for SSL content, over-referencing the SSL version of the script is still fragmenting your local cache unnecessarily. With many thousand sites already using the regular HTTP references to the Google CDN, sites that use the HTTPS reference on HTTP pages are missing out on the cross-site caching benefit, which is probably the biggest advantage of using a shared CDN to begin with.
I've been seeing more and more people using the fixed HTTPS reference on simple sites like WordPress blogs, thinking it's more secure or that it allows them the flexibility to offer their site through both HTTP and HTTPS. In reality, that's just harming their site's performance for most visitors, whereas the protocol-less reference gives them the best of both worlds. Hence the post.
This seems like a good solution -- just encourage everyone to use HTTPS to avoid the cache fragmentation.