now only sends cache headers when results are available