Skip to content

Instantly share code, notes, and snippets.

@ansulev
ansulev / gist:ee2b7215a9dc9c526a8bb061d4b9c408
Created May 16, 2017 03:02 — forked from fennb/gist:1283573
nginx microcaching config example
# Set cache dir
proxy_cache_path /var/cache/nginx levels=1:2
keys_zone=microcache:5m max_size=1000m;
# Virtualhost/server configuration
server {
listen 80;
server_name yourhost.domain.com;
# Define cached location (may not be whole site)
@ansulev
ansulev / 0_reuse_code.js
Created June 12, 2016 14:58
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console