Docunext

  • About

Apache mod cache and mod rewrite

September 13th, 2007

I'm having a tough time working with modrewrite and modcache, I think because my wordpress setup is messing it up.

First off, in my experience today:

  • mod_cache looks at the final rewritten url, not the requested url, even PT didn't work for me.
  • revalidate requires a last-modified date, which must be sent via php (AFAIK about PHP having to send it)
  • I needed to setup the htaccess file for wordpress to include the qeury string in the rewritten url (not with QSA though, I have to use (.asterisk) to add it onto the end)

From my experience today, I can see that modproxy and modcache can work together to form a really powerful combination for scaling out web services!

My initial thoughts:

  • Use the memory cache for often changing information - like that from a database to store small objects like html documents
  • Use the disk cache to store larger remote objects that don't change as often, that are retrieved via a proxy

Good news - it works with Internet Explorer too, amazing!

Yearly Indexes: 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2015 2019 2020