Set the correct status header for cached files (see #6585)