Melt the butter in an enameled cast-iron casserole. Add the onion and cook over moderate heat until just softened, 2 minutes. Add the bacon and cook until golden and the fat is rendered, 4 minutes. Add the cabbage and caraway seeds, cover and cook over moderately low heat, stirring, until tender, 30 minutes. Season with salt and pepper and serve.