refactor expires header