I am a huge coffee drinker too and I actually started to drink smaller amounts of caffeine each week so I wouldn't have to deal with caffeine headaches. I did drink caffeine up to the day before my surgery. My doctor said to not have caffeine for the first two weeks after surgery and slowly work it back in after that.
My headaches are much better now and the pain in my left shoulder is gone, so I am really happy about that.
Good luck with your surgery on 12/9. Being stuck drinking liquids for two weeks is tough because there isn't much variety but the band is working so I can't complain.