I'm curious what people here use for page caching in particular. Not just for static assets but also dynamic pages.
I realize that most put their site behind a CDN but that doesn't always get you proper page caching.
Do you think about page caching at all?
What kind of setup do you have?
Do you correlate fast pages (low TTFB) with SEO / SERP?
Thanks!
* Cache frequent database requests with an in-memory database, key/value store. There's two big players in this field, memcached and Redis. Personally I prefer the latter.
* Cache static content. This would be a CDN and can run either as a separate domain or between the browser and your servers.
* Cache partial page assets (eg half pages on dynamic sites). There's a multitude of ways you can do this including using a key/value store. This reduces the amount of content that needs to be dynamically generated even if some of the page still has to be.
* Cache the entire page. This can be done via solutions like varnish or via a CDN. CDNs that support this level of caching can be configured either via their management portal or by setting caching headers in your your HTTP response. Usually it will different caching headers to the ones your browser will take notice of, but this is often configurable.
* Browser caching. This is one that I've found developers et al often overlook. It's also the level of caching that can cause the most headaches. But it's the cheapest to implement and cheapest to run so it's definitely worth getting browser caching right first.
[edit]
I forgot to add:
* Full page caching with a Javascript API model. This is something a lot of popular dynamic sites do. Basically the entire HTML page served is a template and the Javascript library draws the dynamic content on top of it. This way all of your assets can be cached and a lot of needless dynamic text rendering is distributed amongst the clients instead of handled on the server. The downside to this is it's more complicated to build with more places to break (users running weird browsers, disabling JS, attackers, etc). But the gains can also be significant.