V
V
Vitali Kulinich2015-08-20 15:13:51
Nginx
Vitali Kulinich, 2015-08-20 15:13:51

Nginx browser caching?

Good afternoon
There is a site, Nginx proxies requests to apache, they are located on different servers. You need to enable image caching by the browser after adding
location ~* ^.+\.(jpg|jpeg|gif|png|ico)$ {
expires 60m;
}
Pictures generally cease to be displayed, what could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
neol, 2015-08-20
@neol

specify proxy_pass for location with pictures.
or root so that nginx takes pictures from disk without pulling apache

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question