Of course, if these images (and CSS and static JS files, etc.) are not used as HTTPS, they will be cached by Internet providers or other proxy servers (well, actually, caches), as well as their files cookie
There, the cache pointer looks something like this:
Cache-control: no-cache="set-cookie,set-cookie2"
... which should point to caches so as not to cache the set-cookie response headers, but I'm not sure how widely this is supported (even though it's standard).
Avoid set-cookie response headers when serving images, if possible (maybe not easy if you don't have full control over session management). If the user must authenticate to see certain images, then these images should not be publicly cached in any case.
Lee Kowalkowski
source share