Fixed cache headers processing in gridfs server