diff --git a/rfc9111/shared_test.go b/rfc9111/shared_test.go index 0a17128..53e628a 100644 --- a/rfc9111/shared_test.go +++ b/rfc9111/shared_test.go @@ -301,6 +301,24 @@ func TestShared_Storable(t *testing.T) { false, time.Time{}, }, + { + "GET Set-Cookie: k=v 200 Cache-Control: max-age=15 -> No Store", + &http.Request{ + Method: http.MethodGet, + Header: http.Header{ + "Set-Cookie": []string{"k=v"}, + }, + }, + &http.Response{ + StatusCode: http.StatusOK, + Header: http.Header{ + "Cache-Control": []string{"max-age=15"}, + }, + }, + nil, + false, + time.Time{}, + }, { "ExtendedRule(+15s) GET 200 -> +15s", &http.Request{