Quantcast
Channel: Nginx Forum - Nginx Mailing List - English
Viewing all articles
Browse latest Browse all 7229

fastcgi_cache_bypass. Need some explain. (no replies)

$
0
0
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

Viewing all articles
Browse latest Browse all 7229

Trending Articles


Practice Sheet of Right form of verbs for HSC Students


Sarah Samis, Emil Bove III


ZARIA CUMMINGS


Need radio code for IVECO Delphi Aptiv FJ5 RBT M16


Black Angus Grilled Artichokes


Ed Sheeran – Sapphire – Pre-Single [iTunes Plus M4A]


Sunny Garcia’s Ex-Wife Colleen McCullough


99 God Status for Whatsapp, Facebook


Funeral of Sir Warwick Franklin


MHDD



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>