mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-04-21 11:26:15 +02:00
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:
committed by
GitHub
parent
14fb36e347
commit
8bfa445023
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"localhost": patch
|
||||
---
|
||||
|
||||
Disable caching on responses.
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user