Download & Extend

Having different bundles for different pages

Project:BundleCache
Version:6.x-1.x-dev
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:postponed

Issue Summary

Hi,
Is it possible to have different bundles for different pages?. for example front page my need bigger bundle and internal pages like content full page may need only a small bundle.

Regards

Comments

#1

Currently, one file can only be in one bundle. That is (at the moment) a deliberate restriction. The intended way for your case is:

  • Create one bundle that holds all CSS/JS that is common among all pages
  • Create bundles that are specific to a subset of pages

E.g., you would have one “Common” bundle that contains the layout/design CSS as well as commonly used page elements. On the other pages, you would include the bundle specific to that site. In the end, you would end up with 2 CSS files on the page which is still acceptable in terms of HTTP requests.

#2

Thanks for the explanation. it's working well now. I'm going to replace JavaScript aggregation module and drupal built in css compressor with your module :))

PS : That would be nice to see this feature in the next release, guess you have a long to-do list yourself :)

#3

Status:active» postponed

Postponing this feature. That doesn't mean that it will never happen, it's just unlikely to happen in the near future since that feature is not really how sf_cache should be used.

#4

Project:Support File Cache» BundleCache
Version:5.x-1.1-a» 6.x-1.x-dev

Moving to the Bundlecache issue queue, as per #962178: Rename/migrate to Bundlecache and provide a stable D6 release..

nobody click here