chore(localhost): disable caching (#3112)

* chore(localhost): disable caching

mostly seeing this cache being a problem on CEF - the response is cached so app updates are not reflected properly

* fmt
This commit is contained in:
Lucas Fernandes Nogueira
2025-11-19 17:03:32 -03:00
committed by GitHub
parent 14fb36e347
commit 8bfa445023
2 changed files with 9 additions and 0 deletions
@@ -0,0 +1,5 @@
---
"localhost": patch
---
Disable caching on responses.
+4
View File
@@ -105,6 +105,10 @@ impl Builder {
.insert("Content-Security-Policy".into(), csp);
}
response
.headers
.insert("Cache-Control".into(), "no-cache".into());
if let Some(on_request) = &on_request {
on_request(&request, &mut response);
}