Hi,
I have a class that processes CSS files, allowing me to dynamically set
some CSS properties (for colour schemes etc.) and a few other things.
I'm currently using Zend_Cache to store these files, with an unlimited
lifetime (as they rarely change), and then I’m just clearing out the
cache whenever I make an adjustment to the source CSS.
This works OK, but I would really like to: A. Be able to get my CSS
class to automatically rebuild the cached file if any of the source
files have changed (like Zend_Cache_Frontend_File, but with multiple
files, and my dynamic class built in), and B. Get the whole thing
working with the expires/cache related HTTP headers, so that if a client
requests the file again, and it hasn’t changed, it sends back a 304
response rather than the whole content.
Is it possible to use the Zend_Controller_Request_Http and
Zend_Controller_Response_Http objects outside of the Zend_Controller
context, standalone? And if so, are there any defaults or automatically
set values that I should be aware of?
Has anyone else tried to implement a cached content system with
Zend_Cache, Zend_Controller_Request_Http and Zend_Controller_Response_Http?
Thanks,
--
Jack