Do you have a favicon.ico
in your pico
app?
What framework are you using for your web app?
When you installed IIS did you enable the feature Static Content
under World Wide Web Services\Common HTTP Features
?
If you Ctrl+F5 to refresh the browser does the problem go away?
What request headers are sent back as part of the initial 200 response?
IIS8 Strange redirects to 302 after a 200
Hello Everyone!
I am currently using IIS 8.1 in Windows Server 2012, to serve a small website, the website looks and works fine, the strange thing that I noticed happens when you request a single file as for example https://192.168.1.26/pico/favicon.ico, Using Chrome, Firefox or different computers you can see in the browser's Network Console this behavior
200 favicon.ico https://192.168.1.26/pico/favicon.ico
302 favicon.ico https://192.168.1.26/favicon.ico
200 error404.html https://192.168.1.26/pico/errors/error404.html
As I understand I should only get the 200 but I see that in the Browser network console.
I do have custom error pages for 404 most likely I see that because https://192.168.1.26/favicon.ico does not exist in the web.
I currently have two small Sites in IIS the first one works fine(does not have this strange behavior) but this second one does this strange redirect to 302, I can't find any redirect in the IIS options.
Curl to the file works simply responds with 200 no issues at all.
Thanks for you help I am not very good with IIS and haven't been able to find an answer.
Windows development | Internet Information Services
-
Michael Taylor 60,346 Reputation points
2021-10-28T18:08:35.24+00:00