From 4ac70a369694478279ebae11bc4e02d726c32761 Mon Sep 17 00:00:00 2001 From: Elliott Brooks Date: Wed, 1 Mar 2023 01:13:40 +0000 Subject: [PATCH] Add 'cache-control: no-store' header to DevTools server Bug: https://github.com/flutter/devtools/issues/3896 Change-Id: I5cfc2e92716517a044a848339426feb827bb64cb Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/286100 Commit-Queue: Elliott Brooks Reviewed-by: Nate Bosch Reviewed-by: Ben Konyi --- pkg/dds/lib/devtools_server.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/dds/lib/devtools_server.dart b/pkg/dds/lib/devtools_server.dart index 0917fd335aa..c76817e2bfc 100644 --- a/pkg/dds/lib/devtools_server.dart +++ b/pkg/dds/lib/devtools_server.dart @@ -282,7 +282,7 @@ class DevToolsServer { // Ensure browsers don't cache older versions of the app. server.defaultResponseHeaders.add( HttpHeaders.cacheControlHeader, - 'max-age=0', + 'no-store', ); // Serve requests in an error zone to prevent failures