How to cache static files under root /var/www/html/images

Francis Daly francis at
Tue Feb 14 19:14:39 UTC 2017

On Tue, Feb 14, 2017 at 07:10:13PM +0000, Ebayer Ebayer wrote:

Hi there,

> I have Nginx running as a webserver (not as proxy). I need to cache static
> files that are under /var/www/html/images in memory. What's the simplest
> way to do this?

Don't do anything special in nginx.

Make sure that you use an operating system which has decent file caching,
and make sure that you have enough memory that the operating system can
cache these files.

Francis Daly        francis at

More information about the nginx mailing list