all repos — honk @ 46df8b5ced26c13c8e746f3812d05b7b516126a7

my fork of honk

remove cache controls where we may want more auth control
Ted Unangst tedu@tedunangst.com
Mon, 24 Jun 2019 18:39:19 -0400
commit

46df8b5ced26c13c8e746f3812d05b7b516126a7

parent

fe478b7ebe3994b48eeebe5416a4ea1cab7da4f5

1 files changed, 0 insertions(+), 4 deletions(-)

jump to
M honk.gohonk.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