The @ OutputCache directive includes three attributes that allow you to cache different versions of page output:

    1) the required VaryByParam attribute enables varying the cached output depending on the GET or POST parameters passed with the request.
    2) the VaryByHeader attribute enables varying the cached output depending on the HTTP header associated with the request.
    3) the VaryByCustom attribute enables varying the output cache by browser type or by a custom string that you define.

You can check the samples here

http://msdn.microsoft.com/en-us/kb/kb00323290.aspx
and
http://asp.dotnetheaven.com/aspnet/doc/caching/output.aspx