Browser Caching with Zend Framework

While watching the Zend Devzone RSS feed they posted a link to an article that talks about using the Etag Header to make ZF more cache friendly to the browser.

While I was a little hesitant at first about this in my testing on my dev server it seems to have improved page performance in the form of reduced bandwidth coming off the server which is always a good thing.

All that is required is to create and register a new front controller plugin. Click here for the most up to date code.

I personally think it’s worth checking out if you run a zend framework based site as it’s only about ~35 lines of code at the time of writing.

Leave a Reply