A sign like that would not offend me at all. It's non-agressive and quite a reasonable request.
To be perfectly honest though, I might avoid your restaurant during times I didn't have cash on me and quick access to it. Only because I would feel bad not giving you your preferred payment. Not everyone would feel this way, but I know myself, and I can see myself doing that.