Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Cache static assets served from node container for a year
location ~ \.(?:ico|css|js|gif|jpe?g|png|webp|gif|svg|txt)$ {
proxy_pass http://node:3000;
proxy_hide_header Cache-Control;
add_header Cache-Control "public, max-age=31536000, immutable";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment