From 9082ef696cdc0334dfc2487f7dc89b5b022ac270 Mon Sep 17 00:00:00 2001 From: acud <12988138+acud@users.noreply.github.com> Date: Fri, 2 Oct 2020 11:18:52 +0200 Subject: [PATCH 1/3] api: remove cache headers --- api/http/server.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/api/http/server.go b/api/http/server.go index 8bd9aa2676..ff3b66ce1f 100644 --- a/api/http/server.go +++ b/api/http/server.go @@ -914,8 +914,6 @@ func (s *Server) HandleGetFile(w http.ResponseWriter, r *http.Request) { respondError(w, r, fmt.Sprintf("cannot resolve %s: %s", uri.Addr, err), http.StatusNotFound) return } - } else { - w.Header().Set("Cache-Control", "max-age=2147483648, immutable") // url was of type bzz:///path, so we are sure it is immutable. } log.Debug("handle.get.file: resolved", "ruid", ruid, "key", manifestAddr) From 7f38f777fc2c7cb1bad55ab75f8494dc1df55b27 Mon Sep 17 00:00:00 2001 From: acud <12988138+acud@users.noreply.github.com> Date: Mon, 5 Oct 2020 14:49:49 +0200 Subject: [PATCH 2/3] thanks janos --- .travis.yml | 1 + build/ci.go | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index d57b9dc711..aea6a6cf15 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,6 +18,7 @@ jobs: env: - lint script: + - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.30.0 - go run build/ci.go lint # These are the latest Go versions. diff --git a/build/ci.go b/build/ci.go index ce022befc1..be8278e113 100644 --- a/build/ci.go +++ b/build/ci.go @@ -260,10 +260,6 @@ func doLint(cmdline []string) { if len(flag.CommandLine.Args()) > 0 { packages = flag.CommandLine.Args() } - // Get metalinter and install all supported linters - lintcmd := goTool("get", "github.com/golangci/golangci-lint/cmd/golangci-lint") - lintcmd.Env = append(lintcmd.Env, "GO111MODULE=off") // do not interfere with project modules - build.MustRun(lintcmd) // Run fast linters batched together configs := []string{ From 390231a077cda144c15d008e6cb4b28889c7a331 Mon Sep 17 00:00:00 2001 From: acud <12988138+acud@users.noreply.github.com> Date: Wed, 7 Oct 2020 09:56:51 +0200 Subject: [PATCH 3/3] install linter to build bin directory --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index aea6a6cf15..783a20b7bb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,7 +18,7 @@ jobs: env: - lint script: - - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.30.0 + - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ./build/bin v1.30.0 - go run build/ci.go lint # These are the latest Go versions.