fix: do not cache api (incl. grpc) and http errors (#2088)

* fix: add cache-control headers (no-store, no-cache) on grpc (for grpc-web)

* fix: do not cache api response (incl. grpc) and http errors
This commit is contained in:
Livio Amstutz
2021-07-28 13:19:44 +02:00
committed by GitHub
parent 451afada90
commit bd8133aedd
4 changed files with 53 additions and 3 deletions

View File

@@ -36,6 +36,7 @@ func CreateServer(verifier *authz.TokenVerifier, authConfig authz.Config, lang l
middleware.DefaultTracingServer(),
middleware.MetricsHandler(metricTypes, grpc_api.Probes...),
middleware.SentryHandler(),
middleware.NoCacheInterceptor(),
middleware.ErrorHandler(),
middleware.AuthorizationInterceptor(verifier, authConfig),
middleware.TranslationHandler(lang),