Problem/Motivation
Currently, CSS and JavaScript aggregates need the full context of all the libraries added on the page, as well as their order amongst other aggregates, passed as url arguments - via the delta, exclude and include parameters.
This can lead to low cache hit rates in browsers and CDNs, because even when the same file is served on disk, the url parameters can be different (e.g. if a library is added later in the list on one page but not another, without affecting the previous aggregates).
After #3565258: Support library-specific aggregates and #1945262: Replace custom weights with dependencies in library declarations; introduce "before" and "after" for conditional ordering we should be able to change this, to only send the list of libraries actually included in the aggregate as a single query parameter, the mechanism for this is added in #3565258: Support library-specific aggregates.
The content and number of aggregates wouldn't change, but it would simplify the aggregate logic quite a lot as well as reducing variation in query parameters.
Comments