我想为expires指令创建if块,但这在if上下文中是不允许的。
就像这样:
if($args ~ "no_caching=1") {
expires epoch;
}有没有可能用其他方式来创建它?
我需要nginx将expire header更改为epoch,而当前存在简单的$_GET参数no_cache=1。
用于目视检查。
谢谢;)
发布于 2012-03-08 11:53:42
if ($arg_no_caching = 1) {
expires max;
}http://wiki.nginx.org/HttpCoreModule#.24arg_PARAMETER
https://stackoverflow.com/questions/7076780
复制相似问题