0
最も基本的なnginx.confの例をとり、htmlファイルにno-cacheコントロールを追加しようとしました。私が見つけたものすべてを試しましたが、何も動作していないようです。これは私の現在の設定ファイルですnginxの設定に関係なくキャッシュされたHtmlファイル
user nobody;
worker_processes 3;
pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
server {
listen 80;
listen [::]:80;
location/{
location ~\/.+ {
root /var/www;
index index.html index.htm;
}
location ~* \.html$ {
expires -1;
}
}
}
}
私は間違っていますか?それはnginxのためか他の何かのためですか?