Welcome! Log In Create A New Profile

Advanced

исключение кэширования определённых путей: proxy_no_cache или proxy_cache off?

Posted by anon 
Как лучше/правильнее прописывать исключения?

if ($uri ~ ^/forum/) {
set $do_not_cache 1;
}
proxy_no_cache $do_not_cache;
или
location /forum/ {
proxy_cache off;
...
}



Edited 1 time(s). Last edit at 09/19/2011 10:12AM by anon.
Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 187
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