added cache headers default mothod for 404 and 301s