Do not cache based on URL pattern
January 23, 2015 06:39PM
I'm using nginx as a reverse proxy for multiple environments hosted on the same IIS server. I'd like to use the same caching settings for all environments except development, which nothing should be cached.

Is it possible to tell nginx to never cache anything if the url contains the pattern "project_dev" anywhere in the address?
Re: Do not cache based on URL pattern
January 24, 2015 04:39AM
Have a look how map is used in 'nginx-simple-WAF.conf' in the /conf folder from package in my sig.

Map is your friend here.

nginx for Windows
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 75
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready