Longest matching prefix rule has "^~" modifier. Regular expression evaluation was completely bypassed.
Purpose: Preferential prefix: Skips all regex tests for static build assets
alias /var/www/spa/static/; expires 365d; add_header Cache-Control "public, immutable";
Step-by-Step Evaluation Trace (6 Steps)
Evaluated in strictly RFC-ordered phasesDecoded percent-encodings, collapsed redundant slashes, and stripped query string.
Request URI: "/static/css/bundle.css" Normalized: "/static/css/bundle.css" Query: ""
URI "/static/css/bundle.css" != "/favicon.ico".
URI begins with prefix "/static/" (length 8).
URI "/static/css/bundle.css" does not start with "/api/".
URI begins with prefix "/" (length 1).
Longest matching prefix rule has "^~" modifier. Regular expression evaluation was completely bypassed.
location ^~ /static/ {
alias /var/www/spa/static/;
expires 365d;
add_header Cache-Control "public, immutable";
}RFC & Nginx Core Algorithm Fidelity
Simulates exact Nginx C-core matching mechanics: = exact match, ^~ preferential prefix, regex order of appearance, and longest standard prefix fallback.
Zero Server Leaks & Zero Latency
All URI normalization, regular expression parsing, and priority sorting execute 100% client-side in browser memory with zero network overhead.
Production Config Generation
Instantly export clean, validated Nginx server configuration blocks with matching documentation comments and diagnostic curl verification commands.