Skip to content

Instantly share code, notes, and snippets.

@dylanz
Created January 28, 2010 18:37
Show Gist options
  • Save dylanz/289005 to your computer and use it in GitHub Desktop.
Save dylanz/289005 to your computer and use it in GitHub Desktop.
location ~* \.(json)$ {
set memcached_key $key;
memcached_pass $uri;
echo_location_async /json_available;
error_page 404 @proxy;
}
location /json_available {
echo_duplicate 1 "$arg_callback(";
echo_location_async "/json_memcached";
echo_duplicate 1 ")";
}
location /json_memcached {
set memcached_key $key;
memcached_pass $uri;
error_page 404 @proxy;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment