We have our RoR web app being served up by thin servers for load
balancing and using nginx for static content. More and more often, the
user is receiving the resulting html files in the browser as a PDF. When
you refresh several times, you can get the page in it’s actual HTML
form. It is random at first, but after the server has been running for a
few days, it starts to happen more and more frequently. Resetting the
thing servers makes it go back to being a rather random occurrence.
This is becoming so bad that unless we are constantly restarting thin
and taking the app down, users are getting this left and right. No idea
why it would randomly be setting the wrong MIME type on the files. Any
ideas or suggestions would be hugely appreciated.
Thanks,
Karl