Adapt http cache settings code from webby