Article from 2007
2008+ version -- throw your assets into CloudFront (or another CDN of choice), let CDN handle the caching. ;)
How To Optimize Your Site With HTTP Caching
11–20 of 30 posts
Re: How To Optimize Your Site With HTTP Caching
#12Article from 2007
Yep, I was surprised too to see it on HN :). I think one of the meta-takeaway is that understanding the fundamentals of web caching can help with your general CS knowledge ("There are only two hard problems in Computer Science: cache invalidation and naming things." -- Phil Karlton). Looking at Apache, we see a few strategies: * Include last-modified metadata * Include content metadata (eTag/md5 of content) * Include…
Also there are may be many layers of caching between you and the user; not only HTTP caching in the browser, but you have to take into consideration any CDN's (Akamai, etc) and sometimes even caching reverse proxies in corporations.
At my previous job, we handled the versioning with deployment-time rewriting of the assets included in the base page to include the version number (As tagged by the build software with branch name + build number).
That said, enabling browser side caching was a huge win for page speed on the site.
Re: How To Optimize Your Site With HTTP Caching
#13This is a great article for an introduction to HTTP caching. It's well-written and even covers how to set up caching in Apache.
Thanks for the kind words (I'm the author). My main, ever-evolving goal when writing tutorials is to try to write what I'd like to see: 1) Explain the underlying concept 2) Show variations 3) Explain how to do it yourself 4) Show how to verify you did it correctly 5) Meta: be as concise as possible, maximize bang for the buck
Re: How To Optimize Your Site With HTTP Caching
#14Earlier quoted context omitted.
Thanks for the kind words (I'm the author). My main, ever-evolving goal when writing tutorials is to try to write what I'd like to see: 1) Explain the underlying concept 2) Show variations 3) Explain how to do it yourself 4) Show how to verify you did it correctly 5) Meta: be as concise as possible, maximize bang for the buck
I really enjoyed your writing style. It didn't push its (successful!) attempts at humor and used them sparingly enough to be a joy when they were read.
Re: How To Optimize Your Site With HTTP Caching
#15Re: How To Optimize Your Site With HTTP Caching
#16This is a great article for an introduction to HTTP caching. It's well-written and even covers how to set up caching in Apache.
Thanks for the kind words (I'm the author). My main, ever-evolving goal when writing tutorials is to try to write what I'd like to see: 1) Explain the underlying concept 2) Show variations 3) Explain how to do it yourself 4) Show how to verify you did it correctly 5) Meta: be as concise as possible, maximize bang for the buck
Re: How To Optimize Your Site With HTTP Caching
#17Be careful with ETags if you're serving content from a web-farm - http://developer.yahoo.com/performance/rules.html#etags
Re: How To Optimize Your Site With HTTP Caching
#18There's an entire section in there devoted just to caching in HTTP. Very well worth reading in its entirety.
Re: How To Optimize Your Site With HTTP Caching
#19Earlier quoted context omitted.
2008+ version -- throw your assets into CloudFront (or another CDN of choice), let CDN handle the caching. ;)
I know you say that in jest, but I would say that it is still good to know the underlying technology. It is much easier to debug issues in the future once you understand them.