Hello,
Is there any way to use Nginx as a reverse proxy and optimize images on the fly and cache this optimised images in Nginx proxy cache? Could anyone has design this structure with Nginx?
If optimizing images on the fly is not possible then how should Nginx be configured to serve original image on first request (without caching it in Nginx) and serve optimized image to all subsequent requests for specified time with using Nginx Proxy cache (cache_valid)? After specified time request should be sent to original backend to get new image.
Thanks,
Makailol