From a2285c0e91063cf0f07637664c6055acdcacd9a8 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Tue, 2 Dec 2025 02:35:39 -0500 Subject: Ask clients to avoid re-requesting immutable assets for 90 days. Immutable assets include compiled script chunks, as well as stylesheets, fonts, and images baked into the SvelteKit app bundle. They do _not_ include the service worker, the PWA manifest, or the version and environment JSON files that SvelteKit uses to configure the application on startup. This complements Pilcrow's `If-None-Modified` support: if a browser asks but has a cached copy locally, we use the `If-Not-Modified` header to detect that and send back a response instructing the client to use that copy, saving bandwidth but not round trips. This change instructs clients not to even try asking, if they're willing to cache the response, and to instead satisfy those assets entirely from cache, saving round trips. `Duration::from_hours` was added in Rust 1.91, so this change also includes a minimum Rust version bump. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index 5a5513b..4085a19 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "pilcrow" version = "0.1.0" edition = "2024" -rust-version = "1.90" +rust-version = "1.91" authors = [ "Owen Jacobson ", "Kit La Touche ", -- cgit v1.2.3