Welcome! Log In Create A New Profile

Advanced

fastcgi_cache_bypass. Need some explain.

September 11, 2014 05:02AM
Hi,

I am attempting to configure nginx to avoid caching some data.

map $http_x_requested_with $no_cache {
default 0;
"XMLHttpRequest" 1;
}

fastcgi_cache_bypass $no_cache;
fastcgi_no_cache $no_cache;

With above configuration exceptions works fine, but with below - not. Why?

fastcgi_cache_bypass $http_x_requested_with;
fastcgi_no_cache $http_x_requested_with;

With above config all requests (not only with "X-Requested-With: XMLHttpRequest") is bypassed.

--
Cheers,
Vit

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

fastcgi_cache_bypass. Need some explain.

artem September 11, 2014 05:02AM

Re: fastcgi_cache_bypass. Need some explain.

Maxim Dounin September 11, 2014 10:32AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 240
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready