Skip to content
This repository has been archived by the owner on Aug 2, 2021. It is now read-only.

api: remove cache headers #2214

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
env:
- lint
script:
- 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.
Expand Down
2 changes: 0 additions & 2 deletions api/http/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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://<hex key>/path, so we are sure it is immutable.
}

log.Debug("handle.get.file: resolved", "ruid", ruid, "key", manifestAddr)
Expand Down
4 changes: 0 additions & 4 deletions build/ci.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down