From #26:
# don't serve for active sessions
RewriteCond %{HTTP_COOKIE} !kirby_session
# don't serve for URLs with query string
RewriteCond %{QUERY_STRING} ^$
# don't serve for URLs with Kirby param(s)
RewriteCond %{REQUEST_FILENAME} !:
We need to find equivalents for nginx, Caddy and the PHP loader.