API: Permit Cache-Control (browser caching) for datasource resources (#62033)

* Start work on allowing certain resources to pass through Cache-Control headers.
---------

Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
This commit is contained in:
Kyle Brandt
2023-02-02 20:34:55 +00:00
committed by GitHub
co-authored by Marcus Efraimsson
parent f9ec16e74f
commit 27d429e3b1
3 changed files with 45 additions and 4 deletions
+1
View File
@@ -135,6 +135,7 @@ func (sc *scenarioContext) exec() {
Value: sc.tokenSessionCookie,
})
}
sc.m.ServeHTTP(sc.resp, sc.req)
if sc.resp.Header().Get("Content-Type") == "application/json; charset=UTF-8" {