Having different bundles for different pages

sinasalek - May 13, 2008 - 07:26
Project:Support File Cache
Version:5.x-1.1-a
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:postponed
Description

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

#1

kkaefer - May 13, 2008 - 08:36

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

sinasalek - May 13, 2008 - 09:27

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

kkaefer - July 30, 2008 - 11:07
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.

 
 

Drupal is a registered trademark of Dries Buytaert.