11
写真があり、ヘッダーを最大に追加したいのですが、変更可能なプロフィール写真があり、写真を投稿できます。私はこれをどのように管理できるのか分かりません。ありがとう、これは私の設定で、nginxで特定のファイルのみにヘッダーを追加するには
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";
}
おかげ内側位置ブロックに拡張することによって、濾過のdidnあなたが 'location'ブロックを入れ子にすることができるのを知っている! –