question

CiaranFlanagan-0851 avatar image
0 Votes"
CiaranFlanagan-0851 asked SamWu-MSFT commented

Different Jpegs with same name returning the first retrieved in IIS

Hi All,

Im Migrating a Images server from a 2008 R2 to a 2019 server. It all seems to be working except for one odd thing that I cant figure out how to resolve. For reasons of the legacy system this feeds images to I cant rename files etc to be unique.

Say I have two virtual folders
/logos/focusedlogo/logo1.jpg
/logos/unfocusedlogos/logo1.jpg

On the 2008 server (IIS7) I browse to http://url/logos/focusedlogo/logo1.jpg and I get the correct file, if I do the same for http://url/logos/unfocusedlogos/logo1.jpg I get that file. On a browser I can switch between these and always the correct file is displayed.


However, On the 2019 server (IIS10) If I browser to http://url/logos/focusedlogo/logo1.jpg I get the correct image but if I browse to http://url/logos/unfocusedlogos/logo1.jpg I get the same images as the first time again. This is reversible, The one I browse first I keep getting that same image returned to me.

These no specific caching configurations setup on the 2008 server and all settings I can find are mirrored on the two servers.

Any idea how to resolve?


windows-server-iis
· 6
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Enable FRT on both machines so that you can learn how the response messages are generated https://docs.microsoft.com/en-us/iis/troubleshoot/using-failed-request-tracing/troubleshooting-failed-requests-using-tracing-in-iis Then the culprit should be revealed.

0 Votes 0 ·

Thanks for the suggestion but unfortunately there isn't any failure or failure message. the request appears to work fine but its not the correct jpeg file returned.

0 Votes 0 ·
lextm avatar image lextm CiaranFlanagan-0851 ·

You can trace all HTTP responses (not only errors) with FRT if you set response codes to 200-999. You can see a lot more than "the request appears to work", because all technical details are there.

0 Votes 0 ·

@CiaranFlanagan-0851 You can try to clear the browser cache and reset iis, then try again to see if the same problem.

0 Votes 0 ·

I've reset browser cache and reset iis a number of times. always the same result. when i do the same on the old win 2008 server it doesn't have this problem at all.

0 Votes 0 ·
SamWu-MSFT avatar image SamWu-MSFT CiaranFlanagan-0851 ·

@CiaranFlanagan-0851 Have you tried another browser? or there are some special settings in iiis, such as url rewrite.

0 Votes 0 ·

0 Answers