Our site displays images from a remote server, because Let the pictures are set from another ftp, each picture weighs about 5mb.

The user needs these dimensions in order to examine the product image in detail.

What optimization options are there? Is it possible to somehow cache it? Keep out on the server with a very resource-intensive website. Pictures of only 500GB.

What solutions, optimization is there?

  • store pictures on a separate http server and send to clients immediately from it - Marsel Arduanov
  • What's the difference ftp or http? - aat
  • Cache headers to deliver, although ftp can also be cached. You can also download pictures. Generally what's the problem then? - Marsel Arduanov

1 answer 1

Put Nginx Use ETAG Use Last Modified

If the ftp server is somewhere with bad internet or far from the main server, do a proxying with a cache on the main site and you can add resizing for quality loss or compress it in advance

And you can make 1 picture that is well compressed, which can be seen on the site, and the second one, when you click on the picture, to see the original