Development

/plugins/sfGoogleGearCachePlugin/README

You must first sign up to be able to contribute.

root/plugins/sfGoogleGearCachePlugin/README

Revision 15108, 1.5 kB (checked in by jerome.etienne, 4 years ago)

initial commit

Line 
1 = sfGoogleGearCache Plugin =
2
3 == Overview ==
4 sfGoogleGearCachePlugin use [http://gears.google.com Google Gear] to cache resources on the
5 browser computer. Browsers already got cache but user has no actual control on which site
6 caches what. So a uninteresting site may remove data of a very interesting one. To use
7 [http://gears.google.com Google Gear] allow users to explicitly allow a given site to
8 store more informations on their computers. So users get faster response and sites reduce
9 their bandwidth cost, seems like a win-win deal to me :)
10
11 == Installation ==
12
13 To install sfGoogleGearCachePlugin:
14
15 {{{
16 ./symfony plugin-install symfony/sfGoogleGearCachePlugin
17 }}}
18
19 To install from svn:
20 {{{
21 svn co http://svn.symfony-project.com/plugins/sfGoogleGearCachePlugin plugins/sfGoogleGearCachePlugin
22 }}}
23
24 Clear your cache
25
26 {{{
27 ./symfony cc
28 }}}
29
30 == Usage ==
31
32 Add the following at the end of the layout.php, it will include all the javascript
33 needed to cache the registered rescources.
34 {{{
35 <script>
36     <?= sfGoogleGearCache::getJavascript()  ?>
37 </script>
38 }}}
39
40 To register a given url as cachable, do
41 {{{
42 sfGoogleGearCache::addUrl('myurl/to/cache');
43 }}}
44
45 You may simplify the mechanism even further by automatically caching all the stylesheet and javascript of the sfResponse
46 {{{
47 <script>
48     <?= sfGoogleGearCache::addResponseCssJS()   ?>
49     <?= sfGoogleGearCache::getJavascript()      ?>
50 </script>
51 }}}
52
53 == TODO ==
54  * this is a early version
55  
56 == License ==
57
58 For the full copyright and license information, please view the LICENSE
59 file that was distributed with this source code.
Note: See TracBrowser for help on using the browser.