Answer the question
In order to leave comments, you need to log in
How to make a regular expression exception in nginx?
Guys help!
location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|svg)$ {
root /var/www/site/static/;
expires 3d;
add_header Pragma public;
add_header Cache-Control "public";
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question