Answer the question
In order to leave comments, you need to log in
How does Nginx caching work?
Enabled caching for files on the server in the nginx.conf file
location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf|woff2)$ {
root /var/www/cheats/data/www/site.ru;
access_log /var/www/httpd-logs/site.ru.access.log ;
access_log /var/www/nginx-logs/cheats isp;
expires 60d;
}
Answer the question
In order to leave comments, you need to log in
If you really want to cache a dynamic content, then you can look towards Varnish + ESI
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question