Skip to content


Control cache of external resources using content-rewrite feature

I’ve mentioned that PHP Shindig can’t use content-rewrite feature on recent post, but it actually does work at least on version 1.0.x of Shindig.

It seems to work on OpenSocial 0.7 or 0.8 even though content-rewrite feature is proposed for OpenSocial 0.9.

Here’s usage example:

<Optional feature="content-rewrite">
  <Param name="expires">86400</Param>
  <Param name="include-urls"></Param>
  <Param name="exclude-urls">excluded</Param>
  <Param name="exclude-urls">moreexcluded</Param>
  <Param name="minify-css">true</Param>
  <Param name="minify-js">true</Param>
  <Param name="minify-html">true</Param>
</Optional>

See details here.

This will definately make your development easier!

Posted in OpenSocial.

Tagged with .

  • typo?
    include-url -> include-urls
    exclude-url -> exclude-urls
  • 実はこれなんでうまく動かないんだろうとずっと悩んでいて、今やっと答えが見つかりました。
    元々のドキュメントがtypoだったとは・・・。
    教えていただいてありがとうございます。
  • http://opensocial-resources.googlecode.com/svn/...
    v0.9で単数形になるみたいです。include-tagsもなくなってる。
    既に動いている実装が複数形なのにどうするつもりなんでしょうかね。。。
  • ようやく確認できました。確かに、仕様もShindigの実装もinclude-urlのように単数形になってますね。
    まあ、しょせんキャッシュ制御なのでいいっちゃいいんだけど、今まで動いてたガジェットで不具合が出る可能性はありますね・・・
blog comments powered by Disqus