Encoded vs un-encoded URLs in requests are treated the same

Hello!

How correct is the assumption that nginx will always treat Encoded URLs
in
requests same as un-encoded unless processing of urls is manually
overridden
by custom rules to intercept requests and change the cache key?

Note: nginx is configured as reverse proxy

Bottom line is, I have a client who needs to have urls like:

%2Fpath%2to%2Ffile.ext

treated differently than:

/path/to/file.ext

because origin is returning different content if url is encoded.

Any thoughts ?

Posted at Nginx Forum: