The current implementation of this module comes up with an exclude list. The README says about this option that it "(...) automatically excludes non-cacheable URLs, so this is only needed for custom cached URLs that load private data via JavaScript".
Indeed, this does not apply to non-cacheable URLs. A cacheable URL would be cacheable in a Full Page Cache storage like Varnish. And JavaScript could be used to retrieve private data via AJAX. But what is the scenario where a cached page would have private data in JavaScript that would need to be excluded from bfache?
To my opinion, we are talking about a scenario that never happens. If this never happens, this code just sits there for now reason, making it more difficult to maintain and configure.
So I hope that somebody is able to shed some light on this.
The current implementation of this module comes up with an exclude list. The README says about this option that it "(...) automatically excludes non-cacheable URLs, so this is only needed for custom cached URLs that load private data via JavaScript".
Indeed, this does not apply to non-cacheable URLs. A cacheable URL would be cacheable in a Full Page Cache storage like Varnish. And JavaScript could be used to retrieve private data via AJAX. But what is the scenario where a cached page would have private data in JavaScript that would need to be excluded from bfache?
To my opinion, we are talking about a scenario that never happens. If this never happens, this code just sits there for now reason, making it more difficult to maintain and configure.
So I hope that somebody is able to shed some light on this.