Re:iOS6 breaks long polling
by buddydvd on Friday September 21, 2012 @12:36AM
(#4552285)
Another connection related issue is that iOS 6 cache responses of ajax POST requests. http://news.ycombinator.com/item?id=4550441
[ Parent
| on HN ]
I submitted that post, so I have some vested interest in this. I came across this bug because I was converting one of my web apps to use the new iOS 6 feature of being able to upload photos from your Camera Roll to a web site.
However, when you upload a picture, apparently, they are all called image.jpg. Since the image name never changed, every time I uploaded a new pic, the first pic was being returned. I couldn't understand why, and as usual, stackoverflow had a good answer for me. I needed to add a timestamp option to my URL in order to work around this behavior.
Re:iOS6 breaks long polling
by skeletonjelly on Friday September 21, 2012 @01:05AM
(#4552402)
Ouch. That could cause some real damage!