I am using nifty layout from Ryan Bates and that includes Layout helper with following code.

in my application.html.erb

```
<%= stylesheet_link_tag "application", :cache => true %>
<%= javascript_include_tag :defaults, :cache => true %>
<%= yield(:head) %>

```

Then in the helper layout\_helper.rb

```
def stylesheet(*args)
  content_for(:head) { stylesheet_link_tag(*args) }
end
def javascript(*args)
  content_for(:head) { javascript_include_tag(*args) }
end

```

using this in my application i can add css and javascript from any page simply by calling

```
<% javascript "what_ever" %>
<% stylesheet "what_ever" %>

```

but the problem i am facing is that these extra css or js files do not get the :cache => true and thus will not be cached.

Is there a way to resolve this?

Basically I want to have small small css files for each page and then serve one big file when it is called.