Page Caching issue

How can I page cache every url I have in my site?

I did this procedure:

File cache for back-end.

And in the base controller i used this method:

public function filters()


	return array(




			'varyByExpression' => $_SERVER['REQUEST_URI'],




But there are some pages with different link but same content!

Is there a easy approach?

Unless you are willing to extend COutputCache and store a hash about every page (like md5), I can’t think of anything useful.

You may want to consider a change in url rules, as duplicate contents can get Google penalties.

Well, i don’t want duplicated content.

I just want to cache all possible links in my site. And maybe, some exception pages.

I thought the URL is unique and should be used as key. But didn’t work with “expression”.