From 88633c505320cb0484e4d65188724467c856f6e8 Mon Sep 17 00:00:00 2001 From: Vishwas Mittal Date: Sat, 10 Aug 2019 13:49:11 +0530 Subject: [PATCH] modification to support caching at PFE --- src/fs/service.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fs/service.go b/src/fs/service.go index ccc3039..e77f0e0 100644 --- a/src/fs/service.go +++ b/src/fs/service.go @@ -334,7 +334,8 @@ func (service *MercuryFsService) serveFile(writer http.ResponseWriter, request * } else { writer.Header().Set("Last-Modified", mtime) writer.Header().Set("ETag", etag) - writer.Header().Set("Cache-Control", "max-age=0, private, must-revalidate") + //writer.Header().Set("Cache-Control", "max-age=0, private, must-revalidate") + writer.Header().Set("Cache-Control", "max-age=60") debug(4, "Etag sent: %s", etag) http.ServeContent(writer, request, fullPath, fi.ModTime(), osFile) log("\"GET %s\" %d %d \"%s\"", query, 200, fi.Size(), ua)