Browse Source

auto update script executed

Toby Chui 1 year ago
parent
commit
c06890e4dc
1 changed files with 4 additions and 0 deletions
  1. 4 0
      mod/dynamicproxy/Server.go

+ 4 - 0
mod/dynamicproxy/Server.go

@@ -71,9 +71,13 @@ func (h *ProxyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
 		domainOnly = hostPath[0]
 	}
 
+	/* Setup Cache Headers */
+	//w.Header().Set("Cache-Control", "public, max-age=86400")
+
 	/*
 		Host Routing
 	*/
+
 	sep := h.Parent.getProxyEndpointFromHostname(domainOnly)
 	if sep != nil && !sep.Disabled {
 		if sep.RequireBasicAuth {