FastCGI caching mistakes

Hi,

I encountered several failure about fastcgi caching.
Requests with special characters are not cached. Same for requests with
query string.
When I try to purge those URLs, each one send me a 404.

This is my caching key used in a location directive :
fastcgi_cache_key
“$scheme$request_method$host$request_uri$is_args$args#$http_range$isAjax”;

$isAjax : string (empty or “ajax”)

Anyone can tell me why it may not work ?

Posted at Nginx Forum:

Ok, it works for query string now.
I saw that $request_uri already contains query string.

location ~ ^/purge(/.*) {
fastcgi_cache_purge FASTCGICACHE
“$scheme$request_method$host$1$is_args$args#$http_range$isAjax”;
}

I use $1$is_args$args like $request_uri. But special characters are
probably
endoded during the location regex ?
So now, hox to deal with special characters (é, è…) ?

Posted at Nginx Forum: