Vyacheslav Pukhanov's Blog

Tag: infra

Referencing Query Params with Dashes in NGINX Config

I spent some time recently configuring NGINX for one of our microservices, and one of the problems I had to solve was configuring NGINX cache bypass when a specific query parameter is set. This is usually trivial to do by using the cache bypass directives, where NGINX automatically maps the value of the nocache query parameter from the URL to the $arg_nocache variable.

infra nginx config