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 |
Jump to:
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
Currently, one file can only be in one bundle. That is (at the moment) a deliberate restriction. The intended way for your case is:
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
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.