diff --git a/src-tauri/src/cache/const.rs b/src-tauri/src/cache/const.rs index 48983a3..d1dabbc 100644 --- a/src-tauri/src/cache/const.rs +++ b/src-tauri/src/cache/const.rs @@ -52,6 +52,41 @@ pub(crate) const RELOAD_LISTENER_SCRIPT: &str = r#""#; +/// URL scheme prefix for `http://` absolute URLs — skipped during resource discovery. +pub(crate) const HTTP_PREFIX: &str = "http://"; + +/// URL scheme prefix for `https://` absolute URLs — skipped during resource discovery. +pub(crate) const HTTPS_PREFIX: &str = "https://"; + +/// Inline-data URL prefix (`data:image/png;base64,...`) — skipped during resource discovery. +pub(crate) const DATA_PREFIX: &str = "data:"; + +/// Protocol-relative URL prefix (`//cdn.example.com/x.js`) — skipped during resource discovery. +pub(crate) const SCHEME_RELATIVE: &str = "//"; + +/// Authority separator embedded in absolute URLs (`https://host/path`) — any string containing +/// this is treated as absolute and skipped during resource discovery. +pub(crate) const SCHEME_SEPARATOR: &str = "://"; + +/// CSS selector that matches external `