写真があり、そのヘッダーを最大に追加したい、変更して写真を投稿できるプロフィール写真がある、投稿写真にのみヘッダーを追加したいが、プロフィール写真にはヘッダーを追加したくない、どうすれば管理できるかわからないこれ。ありがとう、これは私の設定です、
this is the path of posts, /post/name-of-the-picture.jpg
this is the path of users, /user/name-of-the-picture.jpg
投稿パスにヘッダーのみを追加したい
location ~* \.(css|js|png|gif)$ {
expires max;
add_header Pragma public;
add_header Cache-Control "public";
}