Skip to content

Commit ec12a04

Browse files
committed
chore: disable caching for custom protocol
1 parent 5dc94d7 commit ec12a04

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

crates/tauri-runtime-cef/src/cef_impl/request_handler.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,12 @@ wrap_resource_handler! {
301301
}
302302
}
303303

304+
response.set_header_by_name(
305+
Some(&"Cache-Control".into()),
306+
Some(&"no-store".into()),
307+
1,
308+
);
309+
304310
let mime_type = content_type
305311
.as_ref()
306312
.and_then(|t| t.split(';').next())

0 commit comments

Comments
 (0)