I'm using PageStore and GzipStore to cache pages:

Merb::BootLoader.after_app_loads do
  Merb::Cache.setup do
     register(:page_store, Merb::Cache::PageStore
[Merb::Cache::GzipStore[Merb::Cache::FileStore]], :dir => Merb.root /
"public")
     register(:action_store, Merb::Cache::ActionStore
[Merb::Cache::GzipStore[Merb::Cache::FileStore]], :dir => Merb.root /
"tmp")
     register(:default, Merb::Cache::AdhocStore
[:page_store, :action_store])
  end
end

This causes gzipped content to be saved as filename.html, which the
browser displays as raw gz.  (I set "Content-Encoding: gzip" and am
using Mongrel.)

Seems that the fix to the is problem should start with getting the
files saved with a gz extension.

I found this discussion and solution at the bottom of this thread
about a related problem in Rails:

  
http://stackoverflow.com/questions/941309/what-would-cause-rails-page-caching-to-stop-working

Do we in merb have anything like this in Rails?

  ActionController::Base.page_cache_extension = ".gz"

TIA,
Ming

--

You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/merb?hl=en.


Reply via email to