I've always done zero caching on my site. The main reason is because the content is dymanic. There are other reasons too.
But recently, I was thinking about it and realized that even if I have plenty of spare bandwidth and server CPU, theres still no reason not to cache the basic static files.
In the attached image below, the days above the grey line are essentially un-cached.
Below the grey line, I have it caching images and sounds files for 1 week, and CSS & javascript files for 1 day. No caching of HTML. I only have a few small audio files, and nearly all of my images are small .svg files.
I anxiously awaited the stats to see how things changed. Well as expected, my http requests are way down. Close to 20-25% drop in http requests. Not bad. But heres where it gets strange. NO CHANGE in daily bandwidth! That doesn't even seem possible. Technically bandwidth has gone up a hair but statistically it's basically the same as pre-cache.
23% of total http requests is a LOT. My images may be small but they are images, they are not blank files. Also my 1-day caches, the CSS and Javascript files are probably the biggest files on the whole site. I host my own jquery library file, but even besides that, those files would still be the largest.
These stats are generated with Awstats.
Visits - Honestly not entirely sure how this is calculated, possibly unique IPs over a given time frame
Pages - html page loads
Hits - All HTTP requests
Bandwidth - Bandwith transferred as calculated through apache access logs, which means this should only be file size, not HTTP headers
All of the average values are numbers i calculated myself.
(Looks like you can't embed images here so you'll have to click to see the spreadsheet)
[
i.imgur.com ]
I've been pondering this for 10 days now, these numbers do not make any sense to me. Do they make sense to anyone else?