should_cache_path

Function should_cache_path 

Source
pub fn should_cache_path(
    method: &str,
    path: &str,
    include_paths: &[String],
    exclude_paths: &[String],
) -> bool
Expand description

Check if a request should be cached based on include and exclude patterns

  • If include_paths is empty, all paths are included
  • If exclude_paths is empty, no paths are excluded
  • exclude_paths overrides include_paths
  • Patterns can include method prefixes: “POST /api/*”, “GET *”, etc.