server { listen 80; # ok: header-redefinition add_header X-Frame-Options "DENY" always; location / { return 200 "index"; } location /new-headers { # Add special cache control # ruleid: header-redefinition add_header Cache-Control "no-cache, no-store, max-age=0, must-revalidate" always; # ruleid: header-redefinition add_header Pragma "no-cache" always; return 200 "new-headers"; } }