fix to respond HTTP headers properly when using disk cache