Answer the question
In order to leave comments, you need to log in
Why doesn't nginx cache one file?
The config looks something like this:
add_header Cache-Control "private, no-cache";
...
location ~* \.(?:ico|css|gif|jpe?g|png|svg|js|wasm)(\?[a-zA-Z0-9%\-\._~]+=\d+)?$ {
add_header Cache-Control "public, max-age=31536000";
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