Proxy_cache or direct static files ?
Jonathan Matthews
contact at jpluscplusm.com
Mon Dec 16 11:43:23 UTC 2013
On 16 December 2013 10:47, Larry <nginx-forum at nginx.us> wrote
> Did i understand something wrong ?
Yes.
Proxy cache is for storing the response of an upstream HTTP server
whose requests you're proxying, so that you don't have to ask the
potentially slow(er) upstream server the next time an identical
request comes in.
Serving static files from local disk is, well, for on-disk local assets.
They're different concepts. Don't confuse them. Just recognise
whichever one you're doing, and use the appropriate technique.
More information about the nginx
mailing list