HTTP: What are the best headers for rarely changing images

I have many small images that appear in the user profile, and loading this page is terrible. The best solution is to ask them all, but unfortunately I have too many images for this, and only a few hundred are used for each profile.

So, I am trying to get the second best solution. What headlines should I send? ETag? Expire? Cache control Right now I have:

http://metaward.com/media/award/ofwjh3.png

Last-Modified   Sat, 11 Jul 2009 22:37:49 GMT
Cache-Control   max-age=2592000
Expires Tue, 29 Sep 2009 22:41:21 GMT

And an example of a page with a lot of images (to show how slowly they load, even when cached):

http://metaward.com/6

Sometimes the user also changes his profile, but there is only one of them, so I'm not so worried about caching.

+1
2

" ", . , , , , , , .

100 , . , ( ), , , . , , " ".

+2

, , , - HTTP-. , 50% , , . , , , . php-gd .

0

Source: https://habr.com/ru/post/1723580/


All Articles