add cache headers
This commit is contained in:
1 parent
b8806b0854
commit
a165e13564
17 files changed
+354
-198
No files matched your search
@@ -35,7 +35,7 @@ fn app(cx: Scope<AppProps>) -> Element {
|
||||
}
|
||||
}
|
||||
},
|
||||
"Run a server function! testing1234"
|
||||
"Run a server function!"
|
||||
}
|
||||
"Server said: {text}"
|
||||
})
|
||||
@@ -60,6 +60,6 @@ async fn get_server_data() -> Result<String, ServerFnError> {
|
||||
fn main() {
|
||||
launch!(@([127, 0, 0, 1], 8080), app, {
|
||||
server_cfg: ServeConfigBuilder::new(app, (AppProps { count: 0 })),
|
||||
incremental,
|
||||
incremental: IncrementalRendererConfig::default().invalidate_after(std::time::Duration::from_secs(120)),
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user