Question
How to add expiry header in NGINX?
Tried to add this one-
location ~* .(js|css|png|jpg|jpeg|gif|ico)$ {
expires 30d;
log_not_found off;
}
But it didn't worked,that stopped the server.
Any solution?
Add a comment
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×