Skip to content

Instantly share code, notes, and snippets.

@dylanz
Created January 28, 2010 17:52
Show Gist options
  • Save dylanz/288967 to your computer and use it in GitHub Desktop.
Save dylanz/288967 to your computer and use it in GitHub Desktop.
location ~* \.(json)$ {
default_type "application/json";
# enable xss, and use "callback"
xss_get on;
xss_callback_arg callback;
# get data from memcached, proxy if not found
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