then I’m fetching them from nginx if available with the config:
location / {
# try to fetch from memcached
set $memcached_key “$host$request_uri”;
memcached_pass localhost:11211;
expires 10m;
# not fetched from memcached, fallback
error_page 404 405 502 = @fallback;
}
This works perfectly fine for latin char urls. However, it fails to
catch
unicode urls such as:
The unicode char “%C4%B0” appears same in the nginx logs, application
cache
setting key (that is actually taken from raw REQUEST_URI what nginx
gives).
I’m using version 1.6.0. Any help is much appreciated.
Value of $memcached_key is escaped to make sure memcached protocol
constraints are not violated - most notably, space and “%”
character are escaped into “%20” and “%25”, respectively (space is
escaped as it’s not allowed in memcached keys, and “%” to make the
escaping reversible).