を無効にする場合nginxのは、私はcssファイルのキャッシュを避けるために、nginxの中で次のディレクティブを実装しようとしたCSSファイルに400応答を与える:キャッシュ
upstream turntown_stream {
ip_hash;
server turntown_host:9443;
}
location ~* \.(?:css)$ {
root /data/nginx/html;
expires 0;
}
location/{
root /data/nginx/html;
index index.html index.htm;
}
location /turntown/ {
proxy_cache_bypass $http_upgrade;
proxy_pass https://turntown_stream/turntown/;
# Web sockets
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
}
しかし、私は上記のディレクティブを適用しようとするたびに、任意のCSSファイルhttps:// {DOMAIN} .com/turntownアドレスが入力された後にWebブラウザーに到着し、404応答が返されます。
誰かが間違っていることを教えてください。