remove cache controls where we may want more auth control
Ted Unangst tedu@tedunangst.com
Mon, 24 Jun 2019 18:39:19 -0400
1 files changed,
0 insertions(+),
4 deletions(-)
jump to
M
honk.go
→
honk.go
@@ -464,7 +464,6 @@ j["type"] = "OrderedCollection"
j["totalItems"] = len(jonks) j["orderedItems"] = jonks - w.Header().Set("Cache-Control", "max-age=60") w.Header().Set("Content-Type", theonetruename) j.Write(w) }@@ -487,7 +486,6 @@ j["type"] = "OrderedCollection"
j["totalItems"] = 0 j["orderedItems"] = []interface{}{} - w.Header().Set("Cache-Control", "max-age=60") w.Header().Set("Content-Type", theonetruename) j.Write(w) }@@ -501,7 +499,6 @@ return
} if friendorfoe(r.Header.Get("Accept")) { j := asjonker(user) - w.Header().Set("Cache-Control", "max-age=600") w.Header().Set("Content-Type", theonetruename) j.Write(w) return@@ -559,7 +556,6 @@ if friendorfoe(r.Header.Get("Accept")) {
donksforhonks([]*Honk{h}) _, j := jonkjonk(user, h) j["@context"] = itiswhatitis - w.Header().Set("Cache-Control", "max-age=3600") w.Header().Set("Content-Type", theonetruename) j.Write(w) return