Skip to content

Instantly share code, notes, and snippets.

@vladyslav2
Created May 9, 2016 19:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vladyslav2/be3508578e64b93a54bdb0c65014dc0c to your computer and use it in GitHub Desktop.
Save vladyslav2/be3508578e64b93a54bdb0c65014dc0c to your computer and use it in GitHub Desktop.
nginx microcache configution
proxy_cache_path /tmp/cache keys_zone=cache:10m levels=1:2 inactive=600s max_size=100m;
server {
proxy_cache cache;
proxy_cache_valid 200 1s;
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment