mirror of
https://github.com/aljazceru/njump.git
synced 2026-01-31 03:34:37 +01:00
Remove not working inline build directive
This commit is contained in:
2
image.go
2
image.go
@@ -31,8 +31,6 @@ func generate(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
w.Header().Set("Content-Type", "image/png")
|
||||
|
||||
// +build !nocache
|
||||
w.Header().Set("Cache-Control", "max-age=604800")
|
||||
|
||||
if err := png.Encode(w, img); err != nil {
|
||||
|
||||
1
proxy.go
1
proxy.go
@@ -10,7 +10,6 @@ import (
|
||||
func proxy(w http.ResponseWriter, r *http.Request) {
|
||||
fmt.Println(r.URL.Path, ":~", r.Header.Get("user-agent"))
|
||||
|
||||
// +build !nocache
|
||||
w.Header().Set("Cache-Control", "max-age=604800")
|
||||
|
||||
src := r.URL.Query().Get("src")
|
||||
|
||||
@@ -309,7 +309,6 @@ func render(w http.ResponseWriter, r *http.Request) {
|
||||
templateMapping[typ] = "other.html"
|
||||
}
|
||||
|
||||
// +build !nocache
|
||||
w.Header().Set("Cache-Control", "max-age=604800")
|
||||
|
||||
if err := tmpl.ExecuteTemplate(w, templateMapping[typ], params); err != nil {
|
||||
|
||||
@@ -71,7 +71,6 @@ func renderRelayPage(w http.ResponseWriter, r *http.Request) {
|
||||
"modifiedAt": lastEventAt.Format("2006-01-02T15:04:05Z07:00"),
|
||||
}
|
||||
|
||||
// +build !nocache
|
||||
w.Header().Set("Cache-Control", "max-age=604800")
|
||||
|
||||
if err := tmpl.ExecuteTemplate(w, templateMapping[typ], params); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user