Why word image from web downloaded twice on refresh

Author: camillelola26@gmail.com (camillelola)

I am working as a Java Developer. Recently I am facing a crazy problem, in which publishes an image. The image is then intended to be loaded into MS Word, where is already an Image object, which gets reloaded by hitting F9.

It is working fine, although, for some reason, Word loads the image twice on single refresh. That gives me two entries in the user logon server side. Of course, it is a tiny detail, but I don't like to just hide the second log in a hacky way.

I tried to make server add "connection: close" header, but, according to Wireshark, Word then just uses two requests instead of one session.

Any reason for this behavior?

EDIT:

As seen from Wireshark:

GET / HTTP/1.1 Accept: */* User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.3; WOW64; Trident/7.0; .NET4.0E; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729; MASBJS; ms-office; MSOffice 16) Accept-Encoding: gzip, deflate Host: 192.168.43.1:5326 Connection: Keep-Alive HTTP/1.1 200 OK Content-Type: image/png Date: Mon, 6 Aug 2018 13:20:30 GMT Connection: keep-alive Content-Length: 79167 (transfer of PNG) GET / HTTP/1.1 Accept: */* User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.3; WOW64; Trident/7.0; .NET4.0E; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729; MASBJS; ms-office; MSOffice 16) Accept-Encoding: gzip, deflate Host: 192.168.43.1:5326 Connection: Keep-Alive HTTP/1.1 200 OK Content-Type: image/png Date: Mon, 6 Aug 2018 13:20:30 GMT Connection: keep-alive Content-Length: 79167 (transfer of PNG)

After server closing connection:

GET / HTTP/1.1 Accept: */* User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.3; WOW64; Trident/7.0; .NET4.0E; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729; MASBJS; ms-office; MSOffice 16) Accept-Encoding: gzip, deflate Host: 192.168.43.1:5326 Connection: Keep-Alive HTTP/1.1 200 OK Content-Type: image/png Date: Mon, 6 Aug 2018 15:41:06 GMT Connection: close Content-Length: 23434 (transfer of PNG) GET / HTTP/1.1 Accept: */* User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.3; WOW64; Trident/7.0; .NET4.0E; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729; MASBJS; ms-office; MSOffice 16) Accept-Encoding: gzip, deflate Host: 192.168.43.1:5326 Connection: Keep-Alive HTTP/1.1 200 OK Content-Type: image/png Date: Mon, 6 Aug 2018 15:41:06 GMT Connection: close Content-Length: 23434 (transfer of PNG)

Thanks & Regards, Camillelola

This page has no comments.