Any method for NGINX (as a web-server) to skip metadata and serve content from cached file?
r at roze.lv
Fri Sep 29 13:16:29 UTC 2017
> While caching files on disk, NGINX-proxy adds certain metadata at the the
> beginning of the file.
> Can such files be served by NGINX (acting a server)? Is there a method to
> skip the metadata part and just serve the content from such a cached
Well you can use proxy_store (
http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_store / there
is also a configuration snippet ) with that nginx will save all the upstream
files as-is without any additional metadata.
The drawback is you have to manage the "cache" yourself (expiration /
purging) as nginx won't do anything with the stored files.
More information about the nginx