There's also a new setting for electrum only:
[electrum]
maximum_headers = 20160
This is the max number of headers the server will allow to return on a given request. This value is passed to clients and is ideally a multiple of the retarget period (e.g. 2016).