Answer the question
In order to leave comments, you need to log in
Is it possible to force nginx to return base64 images?
Hello.
Is it possible to somehow configure nginx so that, for example, site.ru/images/1.png returns an image, and site.ru/images/1.png.base64 returns an image, but with a base64 string?
Thank you.
Answer the question
In order to leave comments, you need to log in
The number of images does not increase, or increases slightly, or increases and all of them are often requested
- make base64 at once and make gzip -9 (1.png.base64.gz)
If there are many images and not all of them are requested
- do dynamic generation with result caching
Out of the box, he does not know how.
There is a module: https://github.com/timebug/base64-nginx-module
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question