V
V
Vayladion Gognazdiak2022-03-22 17:23:56
Nginx
Vayladion Gognazdiak, 2022-03-22 17:23:56

Is it possible in nginx to keep the cached response compressed?

Good day.
There is a caching nginx. API json responses are cached.

1. Is it possible to store them compressed on disk?
2. If possible, then if Accept-Encoding is missing, will nginx decompress them for return to the user?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
ky0, 2022-03-22
@ky0

Can be stored on a file system that supports inline compression.

A
Alexander Karabanov, 2022-03-22
@karabanov

As a variant of gzip_static

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question