add cache headers
This commit is contained in:
1 parent
b8806b0854
commit
a165e13564
17 files changed
+354
-198
No files matched your search
@@ -1,2 +1,3 @@
|
||||
dist
|
||||
target
|
||||
target
|
||||
static
|
||||
@@ -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)),
|
||||
});
|
||||
}
|
||||
@@ -1,2 +1,3 @@
|
||||
dist
|
||||
target
|
||||
target
|
||||
static
|
||||
@@ -6,13 +6,14 @@
|
||||
//! ```
|
||||
|
||||
#![allow(non_snake_case)]
|
||||
|
||||
use dioxus::prelude::*;
|
||||
use dioxus_fullstack::prelude::*;
|
||||
use dioxus_router::prelude::*;
|
||||
|
||||
fn main() {
|
||||
launch_router!(@([127, 0, 0, 1], 8080), Route, {
|
||||
incremental,
|
||||
incremental: IncrementalRendererConfig::default().invalidate_after(std::time::Duration::from_secs(120)),
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
dist
|
||||
target
|
||||
target
|
||||
static
|
||||
@@ -12,7 +12,7 @@ use serde::{Deserialize, Serialize};
|
||||
|
||||
fn main() {
|
||||
launch!(@([127, 0, 0, 1], 8080), app, (AppProps { count: 5 }), {
|
||||
incremental,
|
||||
incremental: IncrementalRendererConfig::default().invalidate_after(std::time::Duration::from_secs(120)),
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
dist
|
||||
target
|
||||
target
|
||||
static
|
||||
@@ -12,7 +12,7 @@ use serde::{Deserialize, Serialize};
|
||||
|
||||
fn main() {
|
||||
launch!(@([127, 0, 0, 1], 8080), app, (AppProps { count: 5 }), {
|
||||
incremental,
|
||||
incremental: IncrementalRendererConfig::default().invalidate_after(std::time::Duration::from_secs(120)),
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user