sfGoogleGearCachePlugin - 0.0.1

Provide explicit control over the browser cache via Google Gear

You are currently browsing
the website for symfony 1

Visit the Symfony2 website

« Back to the Plugins Home


Forgot your password?
Create an account



advanced search
Information Readme Releases Changelog Contribute
Show source | Show as Markdown

sfGoogleGearCache Plugin


sfGoogleGearCachePlugin use Google Gear to cache resources on the browser computer. Browsers already got cache but user has no actual control on which site caches what. So a uninteresting site may remove data of a very interesting one. To use Google Gear allow users to explicitly allow a given site to store more informations on their computers. So users get faster response and sites reduce their bandwidth cost, seems like a win-win deal to me :)


To install sfGoogleGearCachePlugin:

./symfony plugin-install symfony/sfGoogleGearCachePlugin

To install from svn:

svn co http://svn.symfony-project.com/plugins/sfGoogleGearCachePlugin plugins/sfGoogleGearCachePlugin

Clear your cache

./symfony cc


Add the following at the end of the layout.php, it will include all the javascript needed to cache the registered rescources.

To register a given url as cachable, do


You may simplify the mechanism even further by automatically caching all the stylesheet and javascript of the sfResponse


  • this is a early version


For the full copyright and license information, please view the LICENSE file that was distributed with this source code.