diff --git a/lib/anubis.go b/lib/anubis.go index 06b030a..a14b63a 100644 --- a/lib/anubis.go +++ b/lib/anubis.go @@ -152,6 +152,12 @@ func (s *Server) maybeReverseProxyOrPage(w http.ResponseWriter, r *http.Request) func (s *Server) maybeReverseProxy(w http.ResponseWriter, r *http.Request, httpStatusOnly bool) { lg := internal.GetRequestLogger(r) + if val, _ := s.store.Get(r.Context(), fmt.Sprintf("ogtags:allow:%s%s", r.Host, r.URL.String())); val != nil { + lg.Debug("serving opengraph tag asset") + s.ServeHTTPNext(w, r) + return + } + // Adjust cookie path if base prefix is not empty cookiePath := "/" if anubis.BasePrefix != "" {