Windows で Apache httpd を実行しています。Apache で index.html をキャッシュ不可にしたいのですが、ホームの index.htmlだけで、他の index.html ファイルはありません。これは私がこれまでに持っているものです:
<Directory "D:\path\to\root">
<FilesMatch "index.html$">
Header set Cache-Control "max-age=0, must-revalidate"
</FilesMatch>
</Directory>
動作しますが、すべてのindex.html ファイルで動作します。これを 1 つの index.html だけに絞り込むにはどうすればよいですか? どうやらディレクトリで正規表現を使用できますが、これは機能しませんでした:
<Directory ~ "D:\\path\\to\\root">