Skip to content

Remove exclude list and use XML layout flag "cacheable" instead? #14

@jissereitsma

Description

@jissereitsma

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    RFCRequesting input

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions