I would like to use expire header for images. I know this the code for doing it.
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires 7d;
}
Now the question is where shud I put this code.
I can't edit vhost configuration of nginx coz it will remove the following code once nginx updates itself.
Please suggest me the right place to put this code.
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires 7d;
}
Now the question is where shud I put this code.
I can't edit vhost configuration of nginx coz it will remove the following code once nginx updates itself.
Please suggest me the right place to put this code.