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 <elliottbrooks@google.com>
Reviewed-by: Nate Bosch <nbosch@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
This commit is contained in:
Elliott Brooks 2023-03-01 01:13:40 +00:00 committed by Commit Queue
parent 9c50105dab
commit 4ac70a3696

View file

@ -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