Fixes #58. Also add Cache Header support. Patch provided by Bruce Mitchener