nginx 处理带版本号的css文件expires
例如:http://bdwm.info/wp-content/themes/minimatica/style.css?ver=1.0.1 在location / {}内加入: if ($request_uri ~* "\.(ico|css|js|gif|jpe?g|png)\?[0-9]+$") { expires max; break; }[……]
关注Linux、PHP、WordPress、虚拟化、深度学习等
例如:http://bdwm.info/wp-content/themes/minimatica/style.css?ver=1.0.1 在location / {}内加入: if ($request_uri ~* "\.(ico|css|js|gif|jpe?g|png)\?[0-9]+$") { expires max; break; }[……]