Answer the question
In order to leave comments, you need to log in
How to give nginx only changed files?
Hello. Is it possible to send only changed files to the browser through nginx? It turns out that if the user reuploads the picture to another one, but with the same name, then the old one still lives in the cache. The cache is configured for 10 days:
location ~* ^.+\.(jpg|jpeg|gif|png|ico|bmp)$ {
#access_log off;
expires 10d;
error_page 404 = @fallback;
break;
}
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