Answer the question
In order to leave comments, you need to log in
How to cache only certain query string requests in nginx?
Goal: configure caching on the nginx side of pages with such addresses
https://examle.com/catalog/category/?product_make=acura
set $skip_cache 0;
if ($query_string != "") {
set $skip_cache 1;
}
Answer the question
In order to leave comments, you need to log in
map $args $skip_cache {
default 1;
"~product_make" 0;
}
server {
...
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question