<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.17097" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=350393512-15062011><FONT face=Arial size=2>Hello
everyone,</FONT></SPAN></DIV>
<DIV><SPAN class=350393512-15062011><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=350393512-15062011><FONT face=Arial size=2>I'd like to use
flex cache for a JSP which generates a list of resources, which
is filterable (using categories).</FONT></SPAN></DIV>
<DIV><SPAN class=350393512-15062011><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=350393512-15062011><FONT face=Arial size=2>The "filter
categories" are added to the request as url-encoded parameters,
so a unique list URL would look like
this:</FONT></SPAN></DIV>
<DIV><SPAN class=350393512-15062011><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=350393512-15062011><FONT face=Arial size=2>1)
mysite.com/en/list.html?cat=/category/one/</FONT></SPAN></DIV>
<DIV><SPAN class=350393512-15062011><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=350393512-15062011><FONT face=Arial size=2>For this type of
URL, I can cache each list output by setting the cache property to
"params=(cat)". So far so good.</FONT></SPAN></DIV>
<DIV><SPAN class=350393512-15062011><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=350393512-15062011><FONT face=Arial size=2>The problem
arise when the list is filtered using multiple categories.
The URLs for such lists look like this:</FONT></SPAN></DIV>
<DIV><SPAN class=350393512-15062011><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=350393512-15062011><FONT face=Arial size=2>2)
mysite.com/en/list.html?cat=/category/one/&cat=/category/two/</FONT></SPAN></DIV>
<DIV><SPAN class=350393512-15062011><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=350393512-15062011><FONT face=Arial size=2>With the cache
property set to "params=(cat)", flex cache only considers the first "cat"
parameter, producing the same output as for 1). Only the
first "cat" parameter is considered.</FONT></SPAN></DIV>
<DIV><SPAN class=350393512-15062011><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=350393512-15062011><FONT face=Arial size=2>To cache the initial
page, I've set the cache property to "no-params=(cat)" – I was unable
to find any other solution.</FONT></SPAN></DIV>
<DIV><SPAN class=350393512-15062011><FONT face=Arial size=2></FONT></SPAN><SPAN
class=350393512-15062011><FONT face=Arial size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=350393512-15062011><FONT face=Arial size=2>Is there any way to
accomplish what I want with flex cache?</FONT></SPAN></DIV>
<DIV><SPAN class=350393512-15062011><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=350393512-15062011><FONT face=Arial size=2>(PS I am aware of
the workaround solution; using a delimiter character to separate categories and
having a single parameter string for "cat", but I was hoping to avoid that
one.)</FONT></SPAN></DIV>
<DIV><SPAN class=350393512-15062011><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=350393512-15062011><FONT face=Arial size=2>Best
regards,</FONT></SPAN></DIV>
<DIV><SPAN class=350393512-15062011><FONT face=Arial
size=2>Paul</FONT></SPAN></DIV></BODY></HTML>