I've recently built a web application using ASP.NET MVC C#. In the app I give users the ability to upload images. This works as expected locally but on the server I have a strange issue that I (with my limited knowledge) can't explain. Images load as expected but only every second time the page is loaded.
To test this try:
http://watchdocumetaries.com/Content/img/profile/admin.jpg
This isn't a controller/action it's simply a file. If you visit once the image loads, the second time you get a 404. Hit F5, it goes image->404->image->404. I really have no idea what's going on here.
Also, I have message functionality that that uses TempData to display a message to the user, eg. "You have uploaded a new image". This also seems to be having issues as it only displays on the second refresh.
Update:
The issue was that I had the application setup on AppHarbor using 2 worker units. I reduced this to one and everything is working as expected.