Any method for NGINX (as a web-server) to skip metadata and serve content from cached file?

Reinis Rozitis r at
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 
> file.?

Well you can use 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 mailing list