tiny 88x31 lexicon for atproto
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

add cache frag

+6
+6
handler/handler.go
··· 1 1 package handler 2 2 3 3 import ( 4 + "fmt" 4 5 "github.com/bluesky-social/indigo/atproto/auth/oauth" 5 6 "github.com/bluesky-social/indigo/atproto/identity" 6 7 "github.com/bluesky-social/indigo/atproto/syntax" ··· 351 352 ed.HoverCSS = throt != nil || thsize != nil 352 353 ed.MarginRight = marginright 353 354 ed.MarginBottom = marginbottom 355 + cache := q.Get("cache") 356 + cacheage, err := strconv.Atoi(cache) 357 + if err == nil { 358 + w.Header().Add("Cache-Control", fmt.Sprintf("public, max-age=%d, immutable", cacheage)) 359 + } 354 360 err = embedT.ExecuteTemplate(w, "embedbase.html", ed) 355 361 if err != nil { 356 362 log.Println(err)